Esempio n. 1
0
 public static FieldInfo FindField(Expression instance, string fieldName)
 {
     return(Validators.NullCheck(instance, "instance").ExpressionType.GetField(fieldName, _instanceBindingFlags));
 }
Esempio n. 2
0
 public static PropertyInfo FindProperty(Expression instance, string propertyName)
 {
     return(Validators.NullCheck(instance, "instance").ExpressionType.GetProperty(propertyName, _instanceBindingFlags));
 }
Esempio n. 3
0
        public static MethodInfo FindMethod(Expression instance, string methodName, Type[] genericArguments, Expression[] arguments)
        {
            var type = Validators.NullCheck(instance, "instance").ExpressionType;

            return(FindMethod(type, methodName, genericArguments, arguments, _instanceBindingFlags));
        }