System::TimeSpan::CompareTo μέθοδος

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

Συγκρίνει το τρέχον και το καθορισμένο αντικείμενο.

int System::TimeSpan::CompareTo(const SharedPtr<Object> &obj) const
ParameterTypeΠεριγραφή
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
ParameterTypeΠεριγραφή
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

Δείτε επίσης