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

定义

比较两个值以确定哪个值小于或等于。

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

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

适用于