NDepend.API Documentation
CyclomaticComplexity Property (IType)
NDepend.CodeModel Namespace > IType Interface : CyclomaticComplexity Property
Gets a numeric nullable value measuring this type child methods additive source code complexity.
Syntax
Nullable<uint> CyclomaticComplexity {get;}

Property Value

null if this type is declared in a third-party assembly.
null if this type has no method where IMethod.CyclomaticComplexity is available.
null if the PDB file of this type parent's assembly, hasen't been found.
null if the source code file path referenced from the PDB file cannot be found.
null if the source code of this type is written with a programming language different than C#.
Otherwise returns this type child methods additive source code complexity.
More information on this can be found at: Understanding NDepend Analysis Inputs
Remarks
Types Cyclomatic Complexity code metric description:
Adapted to the Object-Oriented world, the IMethod.CyclomaticComplexity (CC) metric is also defined for classes and structures as the sum of its methods CC.

Availability:
A non-null numeric value is returned for types with methods where
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