Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

IComparisonOperators<TSelf,TOther,TResult> Interface

Definition

Namespace:
System.Numerics
Assembly:
System.Runtime.dll
Source:
IComparisonOperators.cs
Source:
IComparisonOperators.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

generic <typename TSelf, typename TOther, typename TResult>
 where TSelf : IComparisonOperators<TSelf, TOther, TResult>public interface class IComparisonOperators : System::Numerics::IEqualityOperators<TSelf, TOther, TResult>
public interface IComparisonOperators<TSelf,TOther,TResult> : System.Numerics.IEqualityOperators<TSelf,TOther,TResult> where TSelf : IComparisonOperators<TSelf,TOther,TResult>
type IComparisonOperators<'Self, 'Other, 'Result (requires 'Self :> IComparisonOperators<'Self, 'Other, 'Result>)> = interface
 interface IEqualityOperators<'Self, 'Other, 'Result (requires 'Self :> IComparisonOperators<'Self, 'Other, 'Result>)>
Public Interface IComparisonOperators(Of TSelf, TOther, TResult)
Implements IEqualityOperators(Of 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

Name Description
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


Feedback

Was this page helpful?