public static MemberInfo MemberInfo(this Expression expression)
 {
     return(StaticReflection.GetMemberInfo(expression));
 }
 public static MemberInfo MemberInfo <T>(
     this T instance,
     Expression <Action <T> > expression)
 {
     return(StaticReflection.GetMemberInfo(instance, expression));
 }
 public static MemberInfo MemberInfo <T>(
     this Expression <Func <T> > expression)
 {
     return(StaticReflection.GetMemberInfo(expression));
 }
示例#4
0
 static VersionedRepository()
 {
     VersionPropertyName = StaticReflection.GetMemberInfo <IVersioned, byte[]>(v => v.EntityVersion).Name;
 }