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

◆ ValidateGoto()

static void System.Linq.Expressions.Expression< TDelegate >.ValidateGoto ( LabelTarget target,
ref Expression< TDelegate > value,
string targetParameter,
string valueParameter,
Type type )
inlinestaticprivateinherited

Definition at line 2758 of file Expression.cs.

2759 {
2761 if (value == null)
2762 {
2763 if (target.Type != typeof(void))
2764 {
2765 throw Error.LabelMustBeVoidOrHaveExpression("target");
2766 }
2767 if (type != null)
2768 {
2769 TypeUtils.ValidateType(type, "type");
2770 }
2771 }
2772 else
2773 {
2775 }
2776 }
static void RequiresNotNull(object value, string paramName)
static void ValidateType(Type type, string paramName)
Definition TypeUtils.cs:695
static void ValidateGotoType(Type expectedType, ref Expression value, string paramName)

References System.Linq.Expressions.Error.LabelMustBeVoidOrHaveExpression(), System.Dynamic.Utils.ContractUtils.RequiresNotNull(), System.Linq.Expressions.LabelTarget.Type, System.type, System.Linq.Expressions.Expression< TDelegate >.ValidateGotoType(), System.Dynamic.Utils.TypeUtils.ValidateType(), and System.value.

Referenced by System.Linq.Expressions.Expression< TDelegate >.Label(), and System.Linq.Expressions.Expression< TDelegate >.MakeGoto().