NDepend.API Documentation
DepthOfCreateA Method (ExtensionMethodsSequenceUsage)
NDepend.CodeModel Namespace > ExtensionMethodsSequenceUsage Class : DepthOfCreateA Method
This sequence of methods.
The type directly or indirectly instantiated by all methods in the returned sequence.
Returns a ICodeMetric<TCodeElement,TNumeric> object whose DefinitionDomain is a sub-sequence of this sequence methods, containing only methods that directly or indirectly call a constructor of typeCreated. The metric value for each method in DefinitionDomain is equal to the smallest depth of usage of a constructor.
Syntax

Parameters

methods
This sequence of methods.
typeCreated
The type directly or indirectly instantiated by all methods in the returned sequence.
Remarks
The depth value for methods in returned code metric DefinitionDomain, that are constructors of typeCreated, is 0.
The depth value for methods in returned code metric DefinitionDomain, that are directly calling a constructor of typeCreated, is 1.
And so forth.
This extension method has a O(methods.Count) time complexity.
Requirements

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

See Also

Reference

ExtensionMethodsSequenceUsage Class
ExtensionMethodsSequenceUsage Members
CreateA Method
ThatCreateA Method
ThatCreateAny Method
ThatIndirectlyCreateAny Method
DepthOfCreateAny Method
NDepend.Reserved.CQLinq.ExtensionMethodsCQLinqDependency.CreateA(NDepend.CodeModel.IMethod,System.String)
DepthOfCreateA Method
IndirectlyCreateA Method