System::TimeSpan::CompareTo метод

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

Сравнивает текущий объект и указанный объект.

int System::TimeSpan::CompareTo(const SharedPtr<Object> &obj) const
ПараметрТипОписание
objconst SharedPtr<Object>&Объект TimeSpan, с которым сравнивается текущий объект

ReturnValue

-1 if the current object represents the interval that is shorter than value; 0 if the current object represents the interval that is equal to value; 1 if the current object represents the interval that is longer than value

См. также

TimeSpan::CompareTo(TimeSpan) const method

Сравнивает текущий объект и указанный объект.

int System::TimeSpan::CompareTo(TimeSpan value) const
ПараметрТипОписание
valueTimeSpanОбъект TimeSpan, с которым сравнивается текущий объект

ReturnValue

-1 if the current object represents the interval that is shorter than value; 0 if the current object represents the interval that is equal to value; 1 if the current object represents the interval that is longer than value

См. также