From 9d1e064c3a1a2e8912dc3b8cc03021f7c925ae95 Mon Sep 17 00:00:00 2001 From: Wvader <34067397+wvader@users.noreply.github.com> Date: Mon, 6 Dec 2021 16:47:16 +0000 Subject: [PATCH] Try use struct source for all --- src/MapTo/MapToGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MapTo/MapToGenerator.cs b/src/MapTo/MapToGenerator.cs index d740394..d9a7742 100644 --- a/src/MapTo/MapToGenerator.cs +++ b/src/MapTo/MapToGenerator.cs @@ -62,7 +62,7 @@ namespace MapTo var (source, hintName) = typeDeclarationSyntax switch { StructDeclarationSyntax => MapStructSource.Generate(mappingContext.Model), - ClassDeclarationSyntax => MapClassSource.Generate(mappingContext.Model), + ClassDeclarationSyntax => MapStructSource.Generate(mappingContext.Model), RecordDeclarationSyntax => MapRecordSource.Generate(mappingContext.Model), _ => throw new ArgumentOutOfRangeException() };