UtilReflectionGetAllBaseTypesT Method
Gets the Type inheritance hierarchy of the the source Type, that is,
the type from which the source Type directly inherits, and the types from which their inherited types inherits.
Namespace: DevCase.Core.Diagnostics.Assembly.ReflectionAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static IEnumerable<Type> GetAllBaseTypes<T>()
Public Shared Function GetAllBaseTypes(Of T) As IEnumerable(Of Type)
Dim returnValue As IEnumerable(Of Type)
returnValue = UtilReflection.GetAllBaseTypes()
public:
generic<typename T>
static IEnumerable<Type^>^ GetAllBaseTypes()
static member GetAllBaseTypes : unit -> IEnumerable<Type>
No code example is currently available or this language may not be supported.
- T
-
The source Type.
IEnumerableType
The type from which the source
Type directly inherits, and the types from which the inherited types inherits;
or
if the source
Type represents the
Object class or an interface.
This is a code example.
No code example is currently available or this language may not be supported.
Dim types As IEnumerable(Of Type) = GetAllBaseTypes(Of Form)()
Dim sb As New StringBuilder()
sb.AppendLine($"Type inheritance hierarchy of '{GetType(Form).FullName}':")
sb.AppendLine()
For i As Integer = 0 To (types.Count - 1)
sb.AppendLine($"{String.Concat(Enumerable.Repeat(" "c, (i * 4)))}{types(i).FullName}")
Next i
Console.WriteLine(sb.ToString())
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.