Click here to Skip to main content
15,896,348 members
Articles / Programming Languages / C#

Using Expressions to Provide a Type-Safe Member Lookup

Rate me:
Please Sign up or sign in to vote.
4.38/5 (7 votes)
10 May 2015CPOL4 min read 21.8K   22   6  
When GetProperty leaves you wondering if there really is a property named "Addreess" (sic) on the Type, using an Expression may be a better option.

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Chief Technology Officer
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions