Click or drag to resize

DataSpecsCount Property

Gets the number of DataSpec objects held by this DataSpecs - always greater than zero.

Namespace: DegreeDays.Api.Data
Assembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax
public int Count { get; }

Property Value

Int32
Remarks

The returned value will also give the number of Keys held by this DataSpecs, since each DataSpec object has a unique key.

Assuming you didn't create this DataSpecs object using custom keys (option 2 of the "keys" options presented in the DataSpecs class remarks), then the number returned by this method may be smaller than the number of DataSpec objects that you passed into the constructor. This is because, when keys are being assigned and managed internally (the normal usage scenario), the constructors filter out duplicate DataSpec objects (as explained in the section on uniquness in the DataSpecs class remarks).

See Also