MetalamaAPI documentationAspect APIMetalama.​Framework.​CodeICompilationGet­Derived­Types
Open sandboxFocus

ICompilation.GetDerivedTypes Method

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
System.Collections.Generic.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 System.Type).

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

The base type.

DerivedTypesOptions options

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

Returns
Type Description
System.Collections.Generic.IEnumerable<INamedType>