Open sandboxFocus

Method Type

Type(Type)

Selects the type, given as a reflection Type, that declares the intercepted methods.

Declaration
ITypeSelection Type(Type type)
Parameters
Type Name Description
Type type

The type. A generic type definition, for instance typeof(List<>), selects the methods of all its constructions.

Returns
Type Description
ITypeSelection
Exceptions
Type Condition
ArgumentNullException

type is null.

Type(INamedType)

Selects the type of the code model that declares the intercepted methods.

Declaration
ITypeSelection Type(INamedType type)
Parameters
Type Name Description
INamedType type

The type. Its definition is selected, so the methods of all its constructions are selected.

Returns
Type Description
ITypeSelection
Exceptions
Type Condition
ArgumentNullException

type is null.