NDepend.API Documentation
SourceDecls Property
NDepend.CodeModel Namespace > ICodeElement Interface : SourceDecls Property
Returns one or several source file declarations of this code element. Returns an empty sequence if not SourceFileDeclAvailable.
Syntax
IEnumerable<ISourceDecl> SourceDecls {get;}
Remarks
Assemblies, namespaces and types can have several source file declarations. Methods and fields can have at most one source file declaration.
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
IProjectSourceFilesRebasing Interface
SourceFileDeclAvailable Property
TryOpenSource(ICodeElement) Method
TryCompareSourceWith(ISourceDecl,ISourceDecl) Method