Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Code / ICompilation / Get­Derived­Types

Method GetDerivedTypes

GetDerivedTypes(INamedType, DerivedTypesOptions)

Gets the set of types, in the current compilation, that are derived from a given base type (given as an INamedType).

Declaration
IEnumerable<INamedType> GetDerivedTypes(INamedType baseType, DerivedTypesOptions options)
Parameters
Type Name Description
INamedType baseType

The base type.

DerivedTypesOptions options

Options that determine whether the search should be deep or shallow.

Returns
Type Description
IEnumerable<INamedType>

GetDerivedTypes(Type, DerivedTypesOptions)

Gets the set of types, in the current compilation, that are derived from a given base type (given as a Type).

Declaration
IEnumerable<INamedType> GetDerivedTypes(Type baseType, DerivedTypesOptions options)
Parameters
Type Name Description
Type baseType

The base type.

DerivedTypesOptions options

Options that determine whether the search should be deep or shallow.

Returns
Type Description
IEnumerable<INamedType>