Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetUserDefinedBinaryOperator() [2/2]

static MethodInfo System.Linq.Expressions.Expression< TDelegate >.GetUserDefinedBinaryOperator ( ExpressionType binaryType,
Type leftType,
Type rightType,
string name )
inlinestaticprivateinherited

Definition at line 818 of file Expression.cs.

819 {
820 Type[] types = new Type[2] { leftType, rightType };
821 Type nonNullableType = leftType.GetNonNullableType();
822 Type nonNullableType2 = rightType.GetNonNullableType();
823 MethodInfo methodInfo = nonNullableType.GetAnyStaticMethodValidated(name, types);
825 {
826 methodInfo = nonNullableType2.GetAnyStaticMethodValidated(name, types);
827 }
829 {
831 }
832 return methodInfo;
833 }
static bool AreEquivalent(Type t1, Type t2)
Definition TypeUtils.cs:664
static BinaryExpression GetUserDefinedBinaryOperator(ExpressionType binaryType, string name, Expression left, Expression right, bool liftToNull)
static bool IsLiftingConditionalLogicalOperator(Type left, Type right, MethodInfo method, ExpressionType binaryType)

References System.Dynamic.Utils.TypeUtils.AreEquivalent(), System.Linq.Expressions.Expression< TDelegate >.GetUserDefinedBinaryOperator(), and System.Linq.Expressions.Expression< TDelegate >.IsLiftingConditionalLogicalOperator().