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.
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.MethodCallExpressionA MethodCallExpression that has the NodeType property equal to Call and the Object and Method properties set to the specified values.
Show: