Open sandboxFocus

Property Method

Method

Gets Member as a method: an ordinary method, an operator, an accessor, or the entry point for top-level statements.

Declaration
IMethod Method { get; }
Property Value
Type Description
IMethod
Remarks

The parameters of the method can be passed to an existing interceptor through WithArgs(object), because an IParameter is an IExpression.

Exceptions
Type Condition
InvalidOperationException

Member is not a method, for instance a constructor, or the field, property or event of an initializer.