Прочетете на английски Редактиране

Споделяне чрез


IComparisonOperators<TSelf,TOther,TResult>.LessThan Operator

Definition

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.

Compares two values to determine which is less.

C#
public static abstract TResult operator <(TSelf left, TOther right);

Parameters

left
TSelf

The value to compare with right.

right
TOther

The value to compare with left.

Returns

TResult

true if left is less than right; otherwise, false.

Applies to

Продукт Версии
.NET 7, 8, 9, 10