Exemplo n.º 1
0
 public static FieldInfo FindField(Expression instance, string fieldName)
 {
     return(Validators.NullCheck(instance, "instance").ExpressionType.GetField(fieldName, _instanceBindingFlags));
 }
Exemplo n.º 2
0
 public static PropertyInfo FindProperty(Expression instance, string propertyName)
 {
     return(Validators.NullCheck(instance, "instance").ExpressionType.GetProperty(propertyName, _instanceBindingFlags));
 }
Exemplo 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));
        }