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

GetMembers() throw NotSupportedException #91

Open
ItSkary opened this issue Aug 3, 2021 · 0 comments
Open

GetMembers() throw NotSupportedException #91

ItSkary opened this issue Aug 3, 2021 · 0 comments

Comments

@ItSkary
Copy link

ItSkary commented Aug 3, 2021

I need to enumerate properties of a given object (I am writing a mapper that map property with the same name between two instances).
var type = myObj.GetType(); var accessor = TypeAccessor.Create(type); // I get a DynamicAccessor instance that does not ovveride base GetMembers. var members = accessor.GetMembers(); //throw not implemented exception

I see that only RuntimeTypeAccessor implement that method (overriding the exception) but is not clear how to get that kind of accessor nor which impact that accessor has on performance.

Thanks again for clarification.

PS: I am writing from a smartphone, for some reason I am unable to indent code correctly, my apologies for that

@ItSkary ItSkary changed the title GetMembers() throw NotSuoportedException GetMembers() throw NotSupportedException Aug 3, 2021
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

1 participant