IComparisonOperators<TSelf,TOther,TResult> 介面

定義

定義用來比較兩個值以判斷相對順序的機制。

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)

類型參數

TSelf

實作這個介面的型別。

TOther

要與 TSelf比較的類型。

TResult

做為比較結果所傳回的類型。

衍生
實作

運算子

GreaterThan(TSelf, TOther)

比較兩個值,以判斷哪一個值更大。

GreaterThanOrEqual(TSelf, TOther)

比較兩個值,以判斷哪一個值大於或相等。

LessThan(TSelf, TOther)

比較兩個值,以判斷哪一個值較少。

LessThanOrEqual(TSelf, TOther)

比較兩個值,以判斷哪一個值小於或相等。

適用於