Class Range<TPrimitive>
A range object for collecting a lower and upper limit, such as a number or date range.
Inheritance
System.Object
Range<TPrimitive>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Cqrs.Entities
Assembly: Cqrs.dll
Syntax
public class Range<TPrimitive>
where TPrimitive : struct
Type Parameters
Name | Description |
---|---|
TPrimitive |
Properties
From
The lower limit such as a from System.DateTime.
Declaration
public TPrimitive? From { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<TPrimitive> |
IsFromInclusive
Is the value of From inclusive or not. Defaults to true.
Declaration
public bool IsFromInclusive { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsToInclusive
Is the value of To inclusive or not. Defaults to true.
Declaration
public bool IsToInclusive { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
To
The upper limit such as a to System.DateTime.
Declaration
public TPrimitive? To { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<TPrimitive> |