Show / Hide Table of Contents

Struct EnclosedEndpoint<T>

Represents enclosed range endpoint.

Implements
IFiniteRangeEndpoint<T>
IRangeEndpoint<T>
Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: DotNext
Assembly: DotNext.dll
Syntax
public readonly struct EnclosedEndpoint<T> : IFiniteRangeEndpoint<T>, IRangeEndpoint<T> where T : IComparable<T>
Type Parameters
Name Description
T

The type of the endpoint.

Properties

| Edit this page View Source

Value

Gets a value of this endpoint.

Declaration
public required T Value { get; init; }
Property Value
Type Description
T

Operators

| Edit this page View Source

implicit 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>
| Edit this page View Source

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.

Implements

IFiniteRangeEndpoint<T>
IRangeEndpoint<T>

Extension Methods

BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, ReadOnlySpan<T>)
Collection.ToAsyncEnumerator<TEnumerator, T>(TEnumerator, CancellationToken)
Collection.ToClassicEnumerator<TEnumerator, T>(TEnumerator)
Enumerator.Skip<TEnumerator, T>(ref TEnumerator, int)
ExpressionBuilder.Const<T>(T)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾