Struct EnclosedEndpoint<T>
Represents enclosed range endpoint.
Inherited Members
Namespace: DotNext
Assembly: DotNext.dll
Syntax
public readonly struct EnclosedEndpoint<T> : IFiniteRangeEndpoint<T>, IRangeEndpoint<T> where T : notnull, IComparable<T>
Type Parameters
Name | Description |
---|---|
T | The type of the endpoint. |
Properties
| Edit this page View SourceValue
Gets a value of this endpoint.
Declaration
public required T Value { get; init; }
Property Value
Type | Description |
---|---|
T |
Operators
| Edit this page View Sourceimplicit operator EnclosedEndpoint<T>(T)
Creates a range endpoint that is included to the range.
Declaration
public static implicit operator EnclosedEndpoint<T>(T value)
Parameters
Type | Name | Description |
---|---|---|
T | value | The value of the endpoint. |
Returns
Type | Description |
---|---|
EnclosedEndpoint<T> |
operator ~(EnclosedEndpoint<T>)
Converts enclosed endpoint to disclosed endpoint.
Declaration
public static DisclosedEndpoint<T> operator ~(EnclosedEndpoint<T> endpoint)
Parameters
Type | Name | Description |
---|---|---|
EnclosedEndpoint<T> | endpoint | The endpoint to convert. |
Returns
Type | Description |
---|---|
DisclosedEndpoint<T> | The disclosed endpoint. |