Test additional content header

IValuesProviderT Interface

Provides a standard interface for all value collections that provides methods to support implementation of new operators and domain specific aggregate methods.

Definition

Namespace: Fluent.Calculations.Primitives.Collections
Assembly: Fluent.Calculations.Primitives (in Fluent.Calculations.Primitives.dll) Version: 1.1.0-aplha
public interface IValuesProvider<T> : IReadOnlyCollection<T>, 
	IEnumerable<T>, IEnumerable, IValueProvider, IValue
where T : class, new(), IValueProvider
Implements
IValue, IValueProvider, IEnumerableT, IReadOnlyCollectionT, IEnumerable

Type Parameters

T
Type of collection element

Remarks

Usefull keep track of same kind of values while ussing aggregate functions results in calculations.

Properties

ExpressionMetadata of expression that yielded this value.
(Inherited from IValue)
NameName of value
(Inherited from IValue)
OriginOrigin type of the value.
(Inherited from IValue)
PrimitiveNumeric primitive representation of the value.
(Inherited from IValue)
PrimitiveStringFormatted string representation of the primitive value
(Inherited from IValue)
ScopeNamed scope that this value is part of
(Inherited from IValue)
TagsCustom tags associated with the value.
(Inherited from IValue)
TypeOriginal type of the value implementation
(Inherited from IValue)

Methods

AcceptAccepts Arguments visitor.
(Inherited from IValueProvider)
MakeDefaultReturns the default value of underlying concrete value implementation.
(Inherited from IValueProvider)
MakeOfThisElementTypeInitializes a new instance of collection element type.
MakeOfThisTypeInitializes a new instance of the concrete type.
(Inherited from IValueProvider)

Extension Methods

AverageTSourceComputes the average of a values in a collection.
(Defined by ValuesLinqMathExtensions)
MaxTSourceReturns the maximum of a values in a collection.
(Defined by ValuesLinqMathExtensions)
MinTSourceReturns the minimum of a values in a collection.
(Defined by ValuesLinqMathExtensions)
SumTSourceComputes the sum of a values in a collection.
(Defined by ValuesLinqMathExtensions)

See Also