NDepend.API Documentation
Parent Property (ICodeElement)
NDepend.CodeModel Namespace > ICodeElement Interface : Parent Property
Returns the code element parent of this code element.
Syntax
ICodeElementParent Parent {get;}
Remarks
If this is a code base, returns this.
If this is an assembly, returns this ICodeElement.ParentCodeBase.
If this is a namespace, returns INamespace.INamespace.ParentAssembly.
If this is a type, returns IMember.IMember.ParentNamespace.
If this is a type nested in one or several other types returns also IMember.IMember.ParentNamespace.
If this is a member (method or field), returns IMember.IMember.ParentType.
Requirements

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

See Also

Reference

ICodeElement Interface
ICodeElement Members