System::TimeSpan::Equals method

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

Determines if the time interval represented by the current object is equal to the time interval represented by the specified object.

bool System::TimeSpan::Equals(const SharedPtr<Object> &obj) const
ParameterTypeDescription
objconst SharedPtr<Object>&The TimeSpan object to compare the current object with

ReturnValue

True if the current object and the specified object represent the same time interval, otherwise - false

See Also

TimeSpan::Equals(TimeSpan) const method

Determines if the time interval represented by the current object is equal to the time interval represented by the specified object.

bool System::TimeSpan::Equals(TimeSpan value) const
ParameterTypeDescription
valueTimeSpanThe TimeSpan object to compare the current object with

ReturnValue

True if the current object and the specified object represent the same time interval, otherwise - false

See Also

TimeSpan::Equals(TimeSpan, TimeSpan) method

Returns true if the specified objects represent the same time interval, otherwise - false.

static constexpr bool System::TimeSpan::Equals(TimeSpan a, TimeSpan b)

See Also