Class FromToTSHCl<T>
Generic from-to range class with support for different time and value representations
public class FromToTSHCl<T>
Type Parameters
TType 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
fromTThe start value of the range.
toTThe end value of the range.
fromToUseFromToUseClThe 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
ToLong
Internal storage for the To value as a long
protected long ToLong
Field Value
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
FromToUse
Gets or sets what type of from-to representation is used (DateTime, Unix, etc.)
public FromToUseCl FromToUse { get; set; }
Property Value
IsEmpty
Gets or sets whether this range represents an empty value
public bool IsEmpty { get; set; }
Property Value
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; }