示例#1
0
 public static string GetName <TSource, T>(Expression <Func <TSource, T> > memberExpression)
 {
     return(Reflect.GetMember <TSource, T>(memberExpression).Name);
 }
示例#2
0
 public static string GetName(Expression <Action> memberExpression)
 {
     return(Reflect.GetMember(memberExpression).Name);
 }