NDepend.API Documentation
DepthOfAssignField Method (ExtensionMethodsSequenceUsage)
NDepend.CodeModel Namespace > ExtensionMethodsSequenceUsage Class : DepthOfAssignField Method
This sequence of methods.
The field assigned 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 assign fieldAssigned. The metric value for each method in DefinitionDomain is equal to the depth of usage of the field.
Syntax

Parameters

methods
This sequence of methods.
fieldAssigned
The field assigned by all methods in the returned sequence.
Remarks
The depth value for methods in returned code metric DefinitionDomain, that are directly assigning fieldAssigned, is 0.
The depth value for methods in returned code metric DefinitionDomain, that are directly calling a method that assigns fieldAssigned, 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
FieldsUsed Property
FieldsAssigned Property
FieldsReadButNotAssigned Property
MethodsUsingMe Property
MethodsAssigningMe Property
MethodsReadingMeButNotAssigningMe Property
ThatAssignField Method
ThatAssignAnyFields Method
ThatIndirectlyAssignAnyFields Method
DepthOfAssignAnyFields Method
NDepend.Reserved.CQLinq.ExtensionMethodsCQLinqDependency.AssignField(NDepend.CodeModel.IMethod,System.String)
IndirectlyAssignField Method
DepthOfAssignField Method