Open GoogleCodeExporter opened 9 years ago
For now, I've added a MemberInfo indexer; does this suffice? The reason the
`fields` itself isn't exposed is that abuse by simple casting would violate
some rules; I guess I could copy it to an unrelated array if needed, though.
Let me know if the indexer does the job
Original comment by marc.gravell
on 25 Jun 2011 at 9:52
Yes, indeed it does. Thanks.
The only reservation that I have concerns the requirement to pass a MemberInfo
instance, rather than a simple string. I understand that it is supposed to feel
safer, because now the caller has to dig the member with reflection (or through
the getter expression). But surely you realize that this safety is imaginary,
but the constraint of requiring a MemberInfo is real and can be pretty annoying.
Original comment by mark.kha...@gmail.com
on 26 Jun 2011 at 3:51
Original issue reported on code.google.com by
mark.kha...@gmail.com
on 25 Jun 2011 at 7:24