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

◆ MakeDynamic() [2/7]

static DynamicExpression System.Linq.Expressions.ExpressionExtension.MakeDynamic ( Type delegateType,
CallSiteBinder binder,
Expression arg0 )
inlinestatic

Definition at line 46 of file ExpressionExtension.cs.

47 {
50 if (!delegateType.IsSubclassOf(typeof(MulticastDelegate)))
51 {
52 throw Error.TypeMustBeDerivedFromSystemDelegate();
53 }
59 return DynamicExpression.Make(validMethodForDynamic.GetReturnType(), delegateType, binder, arg0);
60 }
static void RequiresNotNull(object value, string paramName)
static void ValidateArgumentCount(MethodBase method, ExpressionType nodeKind, int count, ParameterInfo[] pis)
static Expression ValidateOneArgument(MethodBase method, ExpressionType nodeKind, Expression arguments, ParameterInfo pi, string methodParamName, string argumentParamName, int index=-1)
static void ValidateDynamicArgument(Expression arg, string paramName)
static MethodInfo GetValidMethodForDynamic(Type delegateType)

References System.Linq.Expressions.ExpressionExtension.GetValidMethodForDynamic(), System.Linq.Expressions.DynamicExpression.Make(), System.Dynamic.Utils.ContractUtils.RequiresNotNull(), System.Linq.Expressions.Error.TypeMustBeDerivedFromSystemDelegate(), System.Dynamic.Utils.ExpressionUtils.ValidateArgumentCount(), System.Linq.Expressions.ExpressionExtension.ValidateDynamicArgument(), and System.Dynamic.Utils.ExpressionUtils.ValidateOneArgument().