System::DateTimeOffset::CompareTo 方法

DateTimeOffset::CompareTo(const DateTimeOffset&) const method

比较两个 DateTimeOffset 对象。

int System::DateTimeOffset::CompareTo(const DateTimeOffset &other) const
参数类型描述
otherconst DateTimeOffset&Object 用于比较。

ReturnValue

-1 - if current object is earlier than other, 1 - if current object is later than other, 0 - if current object is equal to other.

另见

DateTimeOffset::CompareTo(const SharedPtr<Object>&) const method

比较两个 DateTimeOffset 对象。

int System::DateTimeOffset::CompareTo(const SharedPtr<Object> &obj) const
参数类型描述
objconst SharedPtr<Object>&Object 用于比较。

ReturnValue

-1 - if current object is earlier than obj, 1 - if current object is later than obj, 0 - if current object is equal to obj.

另见