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.
NDepend.API
ICodeMetric<TCodeElement,TNumeric> Interface
Members  See Also  Send Feedback
NDepend.CodeModel Namespace : ICodeMetric<TCodeElement,TNumeric> Interface

Glossary Item Box

Represent a code metric, a correspondance between a set of code elements and some numerical values.

Syntax

Visual Basic (Declaration) 
<DefaultMemberAttribute("Item")>
Public Interface ICodeMetric
    (Of TCodeElement As {Class, ICodeElement},
     TNumeric As {New, Struct}) 
C# 
[DefaultMemberAttribute("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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

Copyright © 2004-2014 All rights reserved