MetalamaAPI documentationAdvanced APIMetalama.​Framework.​Engine.​MetricsMetric­Provider<T>
Open sandboxFocus

MetricProvider<T> Class

The default implementation of IMetricProvider<T>.

Inheritance
System.Object
MetricProvider<T>
Namespace: Metalama.Framework.Engine.Metrics
Assembly: Metalama.Framework.Sdk.dll
Syntax
public abstract class MetricProvider<T> : Object, IMetricProvider<T>, IProjectService, IService where T : struct, IMetric, ValueType
Type Parameters
Name Description
T

The type of metric.

Constructors

Name Description
MetricProvider()

Methods

Name Description
Aggregate(ref T, in T)

Aggregates a new value into an aggregate value.

ComputeMetricForMember(IMember)

Computes the metric for a member.

ComputeMetricForType(INamedType)

Computes the metric for a whole type.

GetMetric(IMeasurable)