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

◆ Condition() [2/2]

static ConditionalExpression System.Linq.Expressions.Expression< TDelegate >.Condition ( Expression< TDelegate > test,
Expression< TDelegate > ifTrue,
Expression< TDelegate > ifFalse,
Type type )
inlinestaticinherited

Definition at line 2341 of file Expression.cs.

2342 {
2347 if (test.Type != typeof(bool))
2348 {
2349 throw Error.ArgumentMustBeBoolean("test");
2350 }
2352 {
2353 throw Error.ArgumentTypesMustMatch();
2354 }
2355 return ConditionalExpression.Make(test, ifTrue, ifFalse, type);
2356 }
static void RequiresNotNull(object value, string paramName)
static void RequiresCanRead(Expression expression, string paramName)
static bool AreReferenceAssignable(Type dest, Type src)
Definition TypeUtils.cs:673

References System.Dynamic.Utils.TypeUtils.AreReferenceAssignable(), System.Linq.Expressions.Error.ArgumentMustBeBoolean(), System.Linq.Expressions.Error.ArgumentTypesMustMatch(), System.Linq.Expressions.ConditionalExpression.Make(), System.Dynamic.Utils.ExpressionUtils.RequiresCanRead(), System.Dynamic.Utils.ContractUtils.RequiresNotNull(), and System.type.