Call Method (MethodInfo, IEnumerable(Expression))

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


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


Type: System.Reflection.MethodInfo

The MethodInfo that represents the target method.

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.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Available since 4.0
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top
© 2015 Microsoft