Class IntervalEndpoint<TPoint>
Represents a bounded/unbounded, inclusive/exclusive interval endpoint value.
Implements
IIntervalEndpoint<TPoint>
Namespace: Microsoft.Psi
Assembly: Microsoft.Psi.dll
Syntax
public class IntervalEndpoint<TPoint> : object, IIntervalEndpoint<TPoint>
Type Parameters
Name | Description |
---|---|
TPoint | Type of point value. |
Constructors
View SourceIntervalEndpoint(TPoint)
Initializes a new instance of the IntervalEndpoint<TPoint> class.
Declaration
public IntervalEndpoint(TPoint minOrMax)
Parameters
Type | Name | Description |
---|---|---|
TPoint | minOrMax | Min/max point value (e.g. DateTime.MinValue, double.MinValue, ...) |
Remarks
This is an unbounded instance with a min/max point value.
IntervalEndpoint(TPoint, Boolean)
Initializes a new instance of the IntervalEndpoint<TPoint> class.
Declaration
public IntervalEndpoint(TPoint point, bool inclusive)
Parameters
Type | Name | Description |
---|---|---|
TPoint | point | Point value. |
System.Boolean | inclusive | Whether the point itself is included. |
Remarks
This is a bounded instance.
Properties
View SourceBounded
Gets a value indicating whether the endpoint is bounded.
Declaration
public bool Bounded { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Inclusive
Gets a value indicating whether the endpoint is inclusive.
Declaration
public bool Inclusive { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Point
Gets the point value.
Declaration
public TPoint Point { get; }
Property Value
Type | Description |
---|---|
TPoint |