metode System::TimeSpan::CompareTo

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

Membandingkan objek saat ini dengan objek yang ditentukan.

int System::TimeSpan::CompareTo(const SharedPtr<Object> &obj) const
ParameterTipeDeskripsi
objconst SharedPtr<Object>&Objek TimeSpan untuk membandingkan dengan objek saat ini.

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

Lihat Juga

TimeSpan::CompareTo(TimeSpan) const method

Membandingkan objek saat ini dengan objek yang ditentukan.

int System::TimeSpan::CompareTo(TimeSpan value) const
ParameterTipeDeskripsi
valueTimeSpanObjek TimeSpan untuk membandingkan dengan objek saat ini.

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

Lihat Juga