TimeOnly.Equality(TimeOnly, TimeOnly) 运算符

定义

确定两个指定的实例 TimeOnly是否相等。

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

参数

left
TimeOnly

要比较的第一个对象。

right
TimeOnly

要比较的第二个对象。

返回

Boolean

true 如果向左和向右表示同一时间,否则,为 false.

适用于