Edit

Share via


IComparisonOperators<TSelf,TOther,TResult> Interface

Definition

Defines a mechanism for comparing two values to determine relative order.

C#
public interface IComparisonOperators<TSelf,TOther,TResult> : System.Numerics.IEqualityOperators<TSelf,TOther,TResult> where TSelf : IComparisonOperators<TSelf,TOther,TResult>

Type Parameters

TSelf

The type that implements this interface.

TOther

The type that will be compared with TSelf.

TResult

The type that is returned as a result of the comparison.

Derived
Implements

Operators

GreaterThan(TSelf, TOther)

Compares two values to determine which is greater.

GreaterThanOrEqual(TSelf, TOther)

Compares two values to determine which is greater or equal.

LessThan(TSelf, TOther)

Compares two values to determine which is less.

LessThanOrEqual(TSelf, TOther)

Compares two values to determine which is less or equal.

Applies to

Product Versions
.NET 7, 8, 9