AllMethods()
Selects all the methods that the type declares.
Declaration
IMethodSelection AllMethods()Returns
| Type | Description |
|---|---|
| IMethodSelection |
Remarks
The selected methods are the ordinary methods that the type definition itself declares, static and instance. Operators, conversions, explicit interface implementations, accessors, constructors and finalizers are not selected. An explicit interface implementation is reached through a selection of the interface with IncludingInterfaceImplementations().
The methods that the type inherits are not selected. A call to an inherited method binds to the method of the base type, so selecting it would also intercept the calls on other types that inherit it.
The names of the methods are listed when the description is created. In the IDE, a registration made by a fabric does not select a method that is added to the type later, until the fabric executes again.
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | The type declares no method that can be intercepted. |