brynrhodes / fast-member

Automatically exported from code.google.com/p/fast-member
0 stars 0 forks source link

Provide results of reflection PropertyInfo / FieldInfo in TypeAccessor #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be nice to be able to pull out the PropertyInfo / FieldInfo array 
results created when the accessor is created. In my use case, I need to build 
TypeAccessors off of anonymous types that "look" like the real typed 
counterpart. In these cases I only want to know what properties in the 
anonymous type match the static type (to avoid crashing on a bad get). I've 
patched my version to provide these results so I don't have to take another 
reflection hit outside of the library to do the same thing, but it might be 
worth adding for everyone. Not worth a patch, it's just trivially exposing 
"props" and "fields" as instance properties.

Original issue reported on code.google.com by daniel.crenna on 24 Oct 2012 at 8:06

GoogleCodeExporter commented 9 years ago
This is resolved by MemberSet.

Original comment by daniel.crenna on 13 Jan 2015 at 6:26