MrKWatkins.Reflection 1.3.1 Help

TypeExtensions.EnumerateNestedTypes Method

Definition

If a type is a nested type then it enumerates its parents, starting at the outermost type, followed by the type itself. If it is not nested then it just returns the type.

public static IEnumerable<Type> EnumerateNestedTypes(this Type type);

Parameters

Name

Type

Description

type

Type

Returns

IEnumerable<Type>

Last modified: 17 December 2024