System::TimeSpan::CompareTo yöntemi

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

Geçerli ve belirtilen nesneleri karşılaştırır.

int System::TimeSpan::CompareTo(const SharedPtr<Object> &obj) const
ParameterTypeAçıklama
objconst SharedPtr<Object>&Geçerli nesneyle karşılaştırılacak TimeSpan nesnesi

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

Ayrıca Bakınız

TimeSpan::CompareTo(TimeSpan) const method

Geçerli ve belirtilen nesneleri karşılaştırır.

int System::TimeSpan::CompareTo(TimeSpan value) const
ParameterTypeAçıklama
valueTimeSpanGeçerli nesneyle karşılaştırılacak TimeSpan nesnesi

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

Ayrıca Bakınız