Where(Func<IMethod, bool>)
Keeps only the selected methods that a predicate accepts, for instance one overload of a method name.
Declaration
IMethodSelection Where(Func<IMethod, bool> predicate)Parameters
| Type | Name | Description |
|---|---|---|
| Func<IMethod, bool> | predicate | The predicate over the method definitions of the selected types. It is stored with the registration, so it must not capture a declaration or a compilation. It is invoked once for each method definition that has a selected name. Several calls combine their predicates. |
Returns
| Type | Description |
|---|---|
| IMethodSelection |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
|