共用方式為


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

適用於