NDepend.API Documentation
DepthOfCreateAny Method
NDepend.CodeModel Namespace > ExtensionMethodsSequenceUsage Class : DepthOfCreateAny Method
This sequence of methods.
The types directly or indirectly instantiated by 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 a type in typesCreated. 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.
typesCreated
The types directly or indirectly instantiated by methods in the returned sequence.
Remarks
The depth value for methods in returned code metric DefinitionDomain, that are constructors of any type in typesCreated, is 0.
The depth value for methods in returned code metric DefinitionDomain, that are directly calling a constructor of any type in typesCreated, is 1.
And so forth.
This extension method has a O(methods.Count + typesCreated.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
DepthOfCreateA Method
NDepend.Reserved.CQLinq.ExtensionMethodsCQLinqDependency.CreateA(NDepend.CodeModel.IMethod,System.String)
DepthOfCreateA Method
IndirectlyCreateA Method