Skip to content

Generating valid, meaningful method name from destination type#586

Merged
andrerav merged 1 commit intoMapsterMapper:masterfrom
rafalka:bugfix/580-incorrect_func_name_when_generics_or_nullable
May 29, 2023
Merged

Generating valid, meaningful method name from destination type#586
andrerav merged 1 commit intoMapsterMapper:masterfrom
rafalka:bugfix/580-incorrect_func_name_when_generics_or_nullable

Conversation

@rafalka
Copy link

@rafalka rafalka commented May 5, 2023

This PR fixes #580

Examples:

typeof(int) => Int
typeof(int?) => Int
typeof(int?[]) => IntArray
typeof(List<string[]>) => StringArrayList

Examples:
typeof(int) => Int
typeof(int?) => Int
typeof(int?[]) => IntArray
typeof(List<string[]>) => StringArrayList
@andrerav andrerav merged commit c2d370f into MapsterMapper:master May 29, 2023
@andrerav
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mapster.Tool generates incorrect mapping extension method names when a destination type is nullable or generic

2 participants