PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Reflection.​Method­Body Namespace / IMethod­Call­Expression Interface

IMethodCallExpression Interface

Expression representing a method call.

Namespace:  PostSharp.Reflection.MethodBody
Assembly:  PostSharp (in PostSharp.dll) Version: 6.10.5.0 (6.10.5.0)
Syntax
C#
public interface IMethodCallExpression : IExpression, 
	IMethodBodyElement

The IMethodCallExpression type exposes the following members.

Properties
  NameDescription
Public propertyArguments
Gets the method arguments.
Public propertyConstrainedType
Gets the type to which the virtual method call is constrained to (see Constrained).
Public propertyInstance
Gets the instance on which the method is called, or null if the method is static.
Public propertyIsTail
Determines whether the call is a tail call (see Tailcall).
Public propertyIsVirtual
Determines whether the call is a virtual call.
Public propertyMethod
Gets the called method.
Public propertyMethodBodyElementKind
Gets the kind of syntax element.
(Inherited from IMethodBodyElement.)
Public propertyParentElement
Gets the parent element in the tree.
(Inherited from IMethodBodyElement.)
Public propertyParentMethodBody
Gets the parent method body.
(Inherited from IMethodBodyElement.)
Public propertyReturnType
Gets the type of the return value of the current expression, or Void if the expression does not return anything (i.e. for pure instructions, for instance a goto or throw instruction).
(Inherited from IExpression.)
See Also