mgravell / fast-member

Automatically exported from code.google.com/p/fast-member
Apache License 2.0
1.03k stars 139 forks source link

GetMembers() throw NotSupportedException #91

Open ItSkary opened 3 years ago

ItSkary commented 3 years ago

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