Skip to content

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.

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

View source

Parameters ​

NameTypeDescription
typeType

Returns ​

IEnumerable<Type>