Esempio n. 1
0
 public static string GetPropertyName <T, TResult>(this T target, Expression <Func <T, TResult> > property)
 {
     return(Reflector <T> .GetProperty(property).Name);
 }
Esempio n. 2
0
 public static PropertyInfo GetPropertyInfo <T, TResult>(this T target, Expression <Func <T, TResult> > property)
 {
     return(Reflector <T> .GetProperty(property));
 }