System::TimeSpan::Equals 方法

TimeSpan::Equals(const SharedPtr<Object>&) const method

确定当前对象表示的时间间隔是否等于指定对象表示的时间间隔。

bool System::TimeSpan::Equals(const SharedPtr<Object> &obj) const
参数类型描述
objconst SharedPtr<Object>&用于与当前对象比较的 TimeSpan 对象

ReturnValue

如果当前对象和指定对象表示相同的时间间隔,则为 true;否则为 false。

另见

TimeSpan::Equals(TimeSpan) const method

确定当前对象表示的时间间隔是否等于指定对象表示的时间间隔。

bool System::TimeSpan::Equals(TimeSpan value) const
参数类型描述
valueTimeSpan用于与当前对象比较的 TimeSpan 对象

ReturnValue

如果当前对象和指定对象表示相同的时间间隔,则为 true;否则为 false。

另见

TimeSpan::Equals(TimeSpan, TimeSpan) method

如果指定对象表示相同的时间间隔,则返回 true;否则返回 false。

static constexpr bool System::TimeSpan::Equals(TimeSpan a, TimeSpan b)

另见