NDepend.API Documentation
DirectNestedTypes Property
NDepend.CodeModel Namespace > IType Interface : DirectNestedTypes Property
Gets a sequence of types nested in this type. The sequence doesn't contain types nested in types nested in this type.
Syntax
IEnumerable<IType> DirectNestedTypes {get;}
Remarks
This property getter has a O(this.TypesUsed.Count) time complexity.
Notice that for third-party nested types, the property IType.IsNested is set to true, but the parent/nested relation is not resolved. Hence for third-party types, an empty sequence is returned by this property.
Requirements

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

See Also

Reference

IType Interface
IType Members
NestedTypes Property