Show / Hide Table of Contents

Interface IRangeEndpoint<T>

Represents range endpoint.

Namespace: DotNext
Assembly: DotNext.dll
Syntax
public interface IRangeEndpoint<in T> where T : notnull, allows ref struct
Type Parameters
Name Description
T

The type of the endpoint.

Properties

View Source

Infinity

Gets infinite endpoint.

Declaration
public static IRangeEndpoint<in T> Infinity { get; }
Property Value
Type Description
IRangeEndpoint<T>

Methods

View Source

IsOnLeft(T)

Checks whether the specified value is on the left side from this endpoint.

Declaration
bool IsOnLeft(T value)
Parameters
Type Name Description
T value

The value to check.

Returns
Type Description
bool

true if value is on the left side from this endpoint.

View Source

IsOnRight(T)

Checks whether the specified value is on the right side from this endpoint.

Declaration
bool IsOnRight(T value)
Parameters
Type Name Description
T value

The value to check.

Returns
Type Description
bool

true if value is on the right side from this endpoint.

Extension Methods

BasicExtensions.As<T>(T)
BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, params ReadOnlySpan<T>)
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾