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() };