System::TimeSpan::CompareTo method

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

Compara el objeto actual y el objeto especificado.

int System::TimeSpan::CompareTo(const SharedPtr<Object> &obj) const
ParámetroTipoDescripción
objconst SharedPtr<Object>&El objeto TimeSpan con el que comparar el objeto actual

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

Ver también

TimeSpan::CompareTo(TimeSpan) const method

Compara el objeto actual y el objeto especificado.

int System::TimeSpan::CompareTo(TimeSpan value) const
ParámetroTipoDescripción
valueTimeSpanEl objeto TimeSpan con el que comparar el objeto actual

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

Ver también