TypeExtensionsGetAllDerivedTypes(Type, Assembly) Method
Gets all the types that inherits from the source Type within the specified Assembly.
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,
Assembly assembly
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function GetAllDerivedTypes (
type As Type,
assembly As Assembly
) As IEnumerable(Of Type)
Dim type As Type
Dim assembly As [Assembly]
Dim returnValue As IEnumerable(Of Type)
returnValue = type.GetAllDerivedTypes(assembly)
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
static IEnumerable<Type^>^ GetAllDerivedTypes(
Type^ type,
Assembly^ assembly
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member GetAllDerivedTypes :
type : Type *
assembly : Assembly -> IEnumerable<Type>
No code example is currently available or this language may not be supported.
- type Type
-
The source Type.
- assembly Assembly
-
The assembly from wich to search for derived types.
IEnumerableType
All the types that inherits from the source
Type within the specified assembly;
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, Assembly.GetExecutingAssembly())
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.