Click or drag to resize

DataSpecs(IEnumerableDataSpec) Constructor

Constructs a DataSpecs object containing the specified DataSpec objects.

Namespace: DegreeDays.Api.Data
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public DataSpecs(
	IEnumerable<DataSpec> dataSpecObjects
)

Parameters

dataSpecObjects  IEnumerableDataSpec
The DataSpec objects that you want this DataSpecs to contain. Cannot be null, cannot contain any null values, cannot be empty, and cannot contain more than 120 items.
Exceptions
ExceptionCondition
ArgumentNullExceptiondataSpecObjects is null.
ArgumentExceptiondataSpecObjects contains a null value, or is empty, or contains more than 120 items.
Remarks

Keys will be auto-generated, and duplicates will be filtered. (See the DataSpecs class remarks for an explanation of keys and the uniqueness of DataSpec objects.)

Although the immutable DataSpec objects contained within dataSpecObjects will be stored inside this DataSpecs object, the IEnumerable itself will neither be stored nor modified. So you can continue using dataSpecObjects without concern for side effects.

See Also