Struct DisclosedEndpoint<T>
Represents disclosed range endpoint.
Inherited Members
Namespace: DotNext
Assembly: DotNext.dll
Syntax
public readonly struct DisclosedEndpoint<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 DisclosedEndpoint<T>(T)
Creates a range endpoint that is excluded from the range.
Declaration
public static implicit operator DisclosedEndpoint<T>(T value)
Parameters
Type | Name | Description |
---|---|---|
T | value | The value of the endpoint. |
Returns
Type | Description |
---|---|
DisclosedEndpoint<T> |
operator ~(DisclosedEndpoint<T>)
Converts disclosed endpoint to enclosed endpoint.
Declaration
public static EnclosedEndpoint<T> operator ~(DisclosedEndpoint<T> endpoint)
Parameters
Type | Name | Description |
---|---|---|
DisclosedEndpoint<T> | endpoint | The endpoint to convert. |
Returns
Type | Description |
---|---|
EnclosedEndpoint<T> | The enclosed endpoint. |