Table of Contents

Class FromToTSHCl<T>

Namespace
SunamoCl._public
Assembly
SunamoCl.dll

Generic from-to range class with support for different time and value representations

public class FromToTSHCl<T>

Type Parameters

T

Type of the from and to values

Inheritance
FromToTSHCl<T>
Derived
Inherited Members
Extension Methods

Constructors

FromToTSHCl()

Initializes a new instance and sets FromToUse to None if the type is int

public FromToTSHCl()

FromToTSHCl(T, T, FromToUseCl)

Initializes a new instance with the specified range and representation type.

public FromToTSHCl(T from, T to, FromToUseCl fromToUse = FromToUseCl.DateTime)

Parameters

from T

The start value of the range.

to T

The end value of the range.

fromToUse FromToUseCl

The type of from-to representation (DateTime by default, None for plain numeric).

Fields

FromLong

Internal storage for the From value as a long

protected long FromLong

Field Value

long

ToLong

Internal storage for the To value as a long

protected long ToLong

Field Value

long

Properties

From

Gets or sets the start value of the range, stored internally as a long

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 what type of from-to representation is used (DateTime, Unix, etc.)

public FromToUseCl FromToUse { get; set; }

Property Value

FromToUseCl

IsEmpty

Gets or sets whether this range represents an empty value

public bool IsEmpty { get; set; }

Property Value

bool

To

Gets or sets the end value of the range, stored internally as a long

public T To { get; set; }

Property Value

T

ToAsLong

Gets the To value as a long.

public long ToAsLong { get; }

Property Value

long