System::TimeSpan::CompareTo method

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

Confronta l’oggetto corrente e quello specificato.

int System::TimeSpan::CompareTo(const SharedPtr<Object> &obj) const
ParametroTipoDescrizione
objconst SharedPtr<Object>&L’oggetto TimeSpan da confrontare con l’oggetto corrente

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

Vedi anche

TimeSpan::CompareTo(TimeSpan) const method

Confronta l’oggetto corrente e quello specificato.

int System::TimeSpan::CompareTo(TimeSpan value) const
ParametroTipoDescrizione
valueTimeSpanL’oggetto TimeSpan da confrontare con l’oggetto corrente

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

Vedi anche