System::DateTimeOffset::CompareTo 方法

DateTimeOffset::CompareTo(const DateTimeOffset&) const method

比较两个 DateTimeOffset 对象。

int System::DateTimeOffset::CompareTo(const DateTimeOffset &other) const
ParameterType描述
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
ParameterType描述
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.

另见