예제 #1
0
 /// <summary>
 /// Gets the System.Reflection.PropertyField instance for current expression member
 /// </summary>
 /// <typeparam name="T">The type of the parameter of the method that this delegate encapsulates</typeparam>
 /// <param name="member">The current expression member to get System.Reflection.PropertyInfo instance from</param>
 /// <returns>System.Reflection.PropertyInfo instance for current expression member</returns>
 public static PropertyInfo Property <T>(Expression <Func <T> > member)
 {
     return(StrongTypeReflection.GetMemberFromLambdaExpression <PropertyInfo>(member));
 }
예제 #2
0
 /// <summary>
 /// Gets the System.Reflection.MethodInfo instance for current expression member
 /// </summary>
 /// <typeparam name="T1">The type of the first parameter of the method that this delegate encapsulates</typeparam>
 /// <typeparam name="T2">The type of the second parameter of the method that this delegate encapsulates</typeparam>
 /// <typeparam name="T3">The type of the third parameter of the method that this delegate encapsulates</typeparam>
 /// <param name="member">The current axpression member to get System.Reflection.MethodInfo instance from</param>
 /// <returns>System.Reflection.MethodInfo instance for current expression member</returns>
 public static MethodInfo Method <T1, T2, T3>(Expression <Action <T1, T2, T3> > member)
 {
     return(StrongTypeReflection.GetMemberFromLambdaExpression <MethodInfo>(member));
 }
예제 #3
0
 /// <summary>
 /// Gets the System.Reflection.FieldInfo instance for current expression member
 /// </summary>
 /// <typeparam name="T">The type of the parameter of the method that this delegate encapsulates</typeparam>
 /// <param name="member">The current expression member to get System.Reflection.FieldInfo instance from</param>
 /// <returns>System.Reflection.FieldInfo instance for current expression member</returns>
 public static FieldInfo Field <T>(Expression <Func <T> > member)
 {
     return(StrongTypeReflection.GetMemberFromLambdaExpression <FieldInfo>(member));
 }