Table of Contents

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

T

The 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

from T

The start value.

to T

The end value.

fromToUse FromToUseCollections

The format to use for the values.

Properties

Empty

Gets or sets whether this range is empty.

public bool Empty { get; set; }

Property Value

bool

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

long

FromToUse

Gets or sets the format used for From/To values.

public FromToUseCollections FromToUse { get; set; }

Property Value

FromToUseCollections

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; }

Property Value

long