Class FromToTSHString<T>
- Namespace
- SunamoString._public.SunamoData.Data
- Assembly
- SunamoString.dll
Generic base class representing a from-to range with configurable usage type.
public class FromToTSHString<T>
Type Parameters
TThe type of the range boundaries.
- Inheritance
-
FromToTSHString<T>
- Derived
- Inherited Members
- Extension Methods
Constructors
FromToTSHString()
Initializes a new instance with default values. Sets FtUse to None if T is int.
public FromToTSHString()
FromToTSHString(T, T, FromToUseString)
Initializes a new instance with specified range boundaries and usage type.
public FromToTSHString(T from, T to, FromToUseString fromToUse = FromToUseString.DateTime)
Parameters
fromTThe start of the range.
toTThe end of the range.
fromToUseFromToUseStringHow the range should be interpreted.
Properties
From
Gets or sets the start of the range.
public T From { get; set; }
Property Value
- T
FromLong
Gets the start of the range as a long value.
public long FromLong { get; }
Property Value
FtUse
Specifies how the from-to range should be interpreted.
public FromToUseString FtUse { get; set; }
Property Value
IsEmpty
Indicates whether this instance represents an empty range.
public bool IsEmpty { get; set; }
Property Value
To
Gets or sets the end of the range.
public T To { get; set; }
Property Value
- T
ToLong
Gets the end of the range as a long value.
public long ToLong { get; }