You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
ItSkary
changed the title
GetMembers() throw NotSuoportedException
GetMembers() throw NotSupportedException
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
The text was updated successfully, but these errors were encountered: