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

◆ GetInvokeMethod()

static MethodInfo System.Linq.Expressions.Expression< TDelegate >.GetInvokeMethod ( Expression< TDelegate > expression)
inlinestaticpackageinherited

Definition at line 3198 of file Expression.cs.

3199 {
3201 if (!expression.Type.IsSubclassOf(typeof(MulticastDelegate)))
3202 {
3204 if (type == null)
3205 {
3206 throw Error.ExpressionTypeNotInvocable(expression.Type, "expression");
3207 }
3208 delegateType = type.GetGenericArguments()[0];
3209 }
3210 return delegateType.GetInvokeMethod();
3211 }
static Type FindGenericType(Type definition, Type type)
Definition TypeUtils.cs:626

References System.Linq.Expressions.Error.ExpressionTypeNotInvocable(), System.Dynamic.Utils.TypeUtils.FindGenericType(), and System.type.

Referenced by System.Linq.Expressions.Expression< TDelegate >.Invoke(), System.Linq.Expressions.Expression< TDelegate >.Invoke(), System.Linq.Expressions.Expression< TDelegate >.Invoke(), System.Linq.Expressions.Expression< TDelegate >.Invoke(), System.Linq.Expressions.Expression< TDelegate >.Invoke(), System.Linq.Expressions.Expression< TDelegate >.Invoke(), System.Linq.Expressions.Expression< TDelegate >.Invoke(), and System.Linq.Expressions.Compiler.StackSpiller.RewriteInvocationExpression().