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