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

◆ New() [3/6]

static NewExpression System.Linq.Expressions.Expression< TDelegate >.New ( ConstructorInfo constructor,
IEnumerable< Expression< TDelegate > >? arguments )
inlinestaticinherited

Definition at line 4476 of file Expression.cs.

4477 {
4479 ContractUtils.RequiresNotNull(constructor.DeclaringType, "constructor.DeclaringType");
4480 TypeUtils.ValidateType(constructor.DeclaringType, "constructor", allowByRef: true, allowPointer: true);
4481 ValidateConstructor(constructor, "constructor");
4484 return new NewExpression(constructor, arguments2, null);
4485 }
static void RequiresNotNull(object value, string paramName)
static void ValidateType(Type type, string paramName)
Definition TypeUtils.cs:695
static void ValidateArgumentTypes(MethodBase method, ExpressionType nodeKind, ref ReadOnlyCollection< Expression > arguments, string methodParamName)
static void ValidateConstructor(ConstructorInfo constructor, string paramName)

References System.Dynamic.Utils.ContractUtils.RequiresNotNull(), System.Linq.Expressions.Expression< TDelegate >.ValidateArgumentTypes(), System.Linq.Expressions.Expression< TDelegate >.ValidateConstructor(), and System.Dynamic.Utils.TypeUtils.ValidateType().