Expression.Call Method (Expression, MethodInfo)
Creates a MethodCallExpression that represents a call to a method that takes no arguments.
Assembly: System.Core (in System.Core.dll)
public static MethodCallExpression Call( Expression instance, MethodInfo method )
- Type: System.Linq.Expressions.Expression
To represent a call to a static (Shared in Visual Basic) method, pass in null for instance when you call this method.
If method represents an instance method, the Type property of instance must be assignable to the declaring type of the method represented by method.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.