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