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

◆ Throw() [2/2]

static UnaryExpression System.Linq.Expressions.Expression< TDelegate >.Throw ( Expression< TDelegate >? value,
Type type )
inlinestaticinherited

Definition at line 5365 of file Expression.cs.

5366 {
5368 TypeUtils.ValidateType(type, "type");
5369 if (value != null)
5370 {
5372 if (value.Type.IsValueType)
5373 {
5374 throw Error.ArgumentMustNotHaveValueType("value");
5375 }
5376 }
5377 return new UnaryExpression(ExpressionType.Throw, value, type, null);
5378 }
static void RequiresNotNull(object value, string paramName)
static void RequiresCanRead(Expression expression, string paramName)
static void ValidateType(Type type, string paramName)
Definition TypeUtils.cs:695

References System.Linq.Expressions.Error.ArgumentMustNotHaveValueType(), System.Dynamic.Utils.ExpressionUtils.RequiresCanRead(), System.Dynamic.Utils.ContractUtils.RequiresNotNull(), System.type, System.Dynamic.Utils.TypeUtils.ValidateType(), and System.value.