Class FromToTSHCollections<T>
- Namespace
- SunamoCollections._public.SunamoData.Data
- Assembly
- SunamoCollections.dll
Generic from-to range container with long-based internal storage.
public class FromToTSHCollections<T>
Type Parameters
TThe type used for From and To values.
- Inheritance
-
FromToTSHCollections<T>
- Derived
- Inherited Members
- Extension Methods
Constructors
FromToTSHCollections()
Initializes a new instance with default values.
public FromToTSHCollections()
FromToTSHCollections(T, T, FromToUseCollections)
Initializes a new instance with the specified from and to values.
public FromToTSHCollections(T from, T to, FromToUseCollections fromToUse = FromToUseCollections.DateTime)
Parameters
fromTThe start value.
toTThe end value.
fromToUseFromToUseCollectionsThe format to use for the values.
Properties
Empty
Gets or sets whether this range is empty.
public bool Empty { get; set; }
Property Value
From
Gets or sets the start value of the range.
public T From { get; set; }
Property Value
- T
FromAsLong
Gets the From value as a long.
public long FromAsLong { get; }
Property Value
FromToUse
Gets or sets the format used for From/To values.
public FromToUseCollections FromToUse { get; set; }
Property Value
To
Gets or sets the end value of the range.
public T To { get; set; }
Property Value
- T
ToAsLong
Gets the To value as a long.
public long ToAsLong { get; }