type safe way of getting propertyInfo

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
As the subject implies im looking for a way of getting some propertyinfo and also methodinfo without relying Type.GetProperties. What i would like is something like this:

PropertyInfo pi = propertyof( MyType.Name );

With c#2 is there a way of doing this. If not will a way be added in the future...

Regards
Lee

View the full article
 
Back
Top