Open sandboxFocus

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 = DerivedTypesOptions.All)
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 = DerivedTypesOptions.All)
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>