NDepend.API Documentation
ICodeMetric<TCodeElement,TNumeric> Interface
Members 
NDepend.CodeModel Namespace : ICodeMetric<TCodeElement,TNumeric> Interface
The code element type that is ICodeElement or that implements ICodeElement.
The numeric value type that is one of these type: byte, sbyte, short, ushort, int, uint, long, ulong, float, double, decimal.
Represent a code metric, a correspondance between a set of code elements and some numerical values.
Syntax
[DefaultMember("Item")]
public interface ICodeMetric<TCodeElement,TNumeric> 
where TCodeElement: class, ICodeElement
where TNumeric: new(), struct
Type Parameters
TCodeElement
The code element type that is ICodeElement or that implements ICodeElement.
TNumeric
The numeric value type that is one of these type: byte, sbyte, short, ushort, int, uint, long, ulong, float, double, decimal.
Remarks
A code metric object is returned by extension methods of ExtensionMethodsSequenceUsage defined on sequences of code elements.
A custom code metric object can also be created through the particular method ExtensionMethodsHelpers.ExtensionMethodsHelpers.FillIterative<TCodeElement>.
Requirements

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

See Also

Reference

ICodeMetric<TCodeElement,TNumeric> Members
NDepend.CodeModel Namespace
ICodeMetricValue<TCodeElement,TNumeric> Interface
ExtensionMethodsSequenceUsage Class
FillIterative<TCodeElement> Method