NDepend.API Documentation
UsAndOurNestedTypes Method
NDepend.CodeModel Namespace > ExtensionMethodsProjection Class : UsAndOurNestedTypes Method
This sequence of IType objects.
Returns a sequence of IType objects, containing these types and all their nested types.
Syntax
[Extension()]
public static IEnumerable<IType> UsAndOurNestedTypes( 
   IEnumerable<IType> types
)

Parameters

types
This sequence of IType objects.
Remarks
If a type has a nested type that has a nested type, both nested types are returned. Notice that for third-party nested types, the property IType.IsNested is set to true, but the parent/nested relation represented by IType.NestedTypes and IMember.IMember.ParentType is not resolved. Hence this extension method only works for application types, not for third-party types.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

ExtensionMethodsProjection Class
ExtensionMethodsProjection Members
NestedTypes Property