Call Method (MethodInfo, IEnumerable(Expression))

Expression.Call Method (MethodInfo, IEnumerable<Expression>)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Creates a MethodCallExpression that represents a call to a static (Shared in Visual Basic) method.

Namespace:  System.Linq.Expressions
Assembly:  System.Core (in System.Core.dll)

public static MethodCallExpression Call(
	MethodInfo method,
	IEnumerable<Expression> arguments
)

Parameters

method
Type: System.Reflection.MethodInfo
The MethodInfo that represents the target method.
arguments
Type: System.Collections.Generic.IEnumerable<Expression>
A collection of Expression that represents the call arguments.

Return Value

Type: System.Linq.Expressions.MethodCallExpression
A MethodCallExpression that has the NodeType property equal to Call and the Object and Method properties set to the specified values.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft