TypeExtensionsGetAllDerivedTypes(Type) Method
Gets all the types that inherits from the source Type within the Assembly
in which the source Type is defined.
Namespace: DevCase.Extensions.TypeExtensionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static IEnumerable<Type> GetAllDerivedTypes(
this Type type
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function GetAllDerivedTypes (
type As Type
) As IEnumerable(Of Type)
Dim type As Type
Dim returnValue As IEnumerable(Of Type)
returnValue = type.GetAllDerivedTypes()
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
static IEnumerable<Type^>^ GetAllDerivedTypes(
Type^ type
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member GetAllDerivedTypes :
type : Type -> IEnumerable<Type>
No code example is currently available or this language may not be supported.
- type Type
-
The source Type.
IEnumerableType
All the types that inherits from the source
Type within the loaded assembly in which the source
Type is defined;
or
if there is no
Type that inherits from the source
Type.
In Visual Basic and C#, you can call this method as an instance method on any object of type
Type. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
This is a code example.
No code example is currently available or this language may not be supported.
Dim mainType As Type = GetType(Control)
Dim derivedTypes As IEnumerable(Of Type) = GetAllDerivedTypes(mainType)
Console.WriteLine(String.Join(Environment.NewLine, derivedTypes))
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.