Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ New() [4/6]

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

Definition at line 4488 of file Expression.cs.

4489 {
4491 ContractUtils.RequiresNotNull(constructor.DeclaringType, "constructor.DeclaringType");
4492 TypeUtils.ValidateType(constructor.DeclaringType, "constructor", allowByRef: true, allowPointer: true);
4493 ValidateConstructor(constructor, "constructor");
4497 return new NewExpression(constructor, arguments2, members2);
4498 }
static void RequiresNotNull(object value, string paramName)
static void ValidateType(Type type, string paramName)
Definition TypeUtils.cs:695
static void ValidateNewArgs(ConstructorInfo constructor, ref ReadOnlyCollection< Expression > arguments, ref ReadOnlyCollection< MemberInfo > members)
static void ValidateConstructor(ConstructorInfo constructor, string paramName)

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