IComparisonOperators<TSelf,TOther,TResult>.GreaterThan 操作员

定义

比较两个值以确定哪个值更大。

public:
 static TResult operator >(TSelf left, TOther right);
public static abstract TResult operator > (TSelf left, TOther right);
static member ( > ) : 'Self * 'Other -> 'Result
Public Shared Operator > (left As TSelf, right As TOther) As TResult

参数

left
TSelf

要与 right进行比较的值。

right
TOther

要与 left进行比较的值。

返回

TResult

如果 true 大于 left,则为 right;否则为 false

适用于