Table of Contents

Interface IDataValue

Namespace
Acuit.Pinpoint.IO.Testing.Data
Assembly
Acuit.Pinpoint.IO.Testing.Abstractions.dll

A data value.

public interface IDataValue : IFormattable
Inherited Members
Extension Methods

Remarks

A data value contains both an underlying value (of any type) and a descriptor that provides the optional units of measurement along with a consistent way to format them (e.g., floating-point data values know their number of significant digits).

Numeric data values should implement IConvertible so that their values can be used in calculations.

The implementation must implement IFormattable to support the formats as specified in the remarks for Format(object, string, IFormatProvider).

Properties

Descriptor

Gets the data value descriptor.

IDataValueDescriptor Descriptor { get; }

Property Value

IDataValueDescriptor

Inner

Gets the inner data value, or null if there is none.

IDataValue Inner { get; }

Property Value

IDataValue

Remarks

This allows additional data to be added to data values, such as timestamps or validation results.

When this is set for a data value, Value and Descriptor must return the same values as those of Inner.

Value

Gets the value, which is expected to be immutable.

object Value { get; }

Property Value

object