Is there a simple way to get the PropertyInfo for a property in a delegate, assuming it is a simple property seletor?
Example:
var propertyInfo = Method<MyClass,int>(s => s.Property);
...
PropertyInfo Method(Func<T1,T2> selector)
{
// What goes here?
}