DateOnly.Equality(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

适用于