DateOnly.LessThan(DateOnly, DateOnly) 操作员

定义

确定指定的 DateOnly 是否早于另一个指定的 DateOnly

public:
 static bool operator <(DateOnly left, DateOnly right);
public static bool operator < (DateOnly left, DateOnly right);
static member ( < ) : DateOnly * DateOnly -> bool
Public Shared Operator < (left As DateOnly, right As DateOnly) As Boolean

参数

left
DateOnly

要比较的第一个对象。

right
DateOnly

要比较的第二个对象。

返回

true 如果左早于右侧,则为 ;否则为 false

适用于