Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to prevent mapster from mapping Get... methods to properties. #91

Closed
alexeyosipov opened this issue Dec 1, 2016 · 1 comment
Closed

Comments

@alexeyosipov
Copy link

Hello, found now way to make mapster forget about GetType and other methods like this to do mapping on.

@chaowlert
Copy link
Collaborator

Yeah, sorry. GetType should be ignored from Get... methods. For now, you can remove Get... by

            TypeAdapterConfig.GlobalSettings.Default.Settings.ValueAccessingStrategies
                .Remove(ValueAccessingStrategy.GetMethod);

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

No branches or pull requests

2 participants