Equals()

Namespace ›› System ›› MfTimeSpan ›› Methods ››
Parent Previous Next

Equals()

Overrides MfObject.Equals().

OutputVar := instance.Equals(obj)
OutputVar := MfTimeSpan.Equals(objA, objB)

Equals(obj)

Compares objects to see if they are the same

Parameters

obj

The MfTimeSpan instance to compare to current instance.

Returns

Returns var containing Boolean value of true if the obj is equal with current instance; Otherwise false.

Remarks

MfTimeSpan objects are considered to be equal if then have the same Ticks.

MfTimeSpan.Equals(objA, objB)

Static Method.
Compares objects to see if they are the same.

Parameters

objA

The MfTimeSpan instance to compare with objB.

objB

The MfTimeSpan instance to compare to objA.

Returns

Returns var containing Boolean value of true if the objects are the same; Otherwise false.

Throws

Throws MfNullReferenceException if objB is omitted and current object is not an instance of MfTimeSpan.
Throws MfArgumentException if there is an error get a value from a parameter.
Throws MfNotSupportedException if a parameter is not an intance of MfTimeSpan.
Throws MfException on any general exceptions are caught.

Remarks

MfTimeSpan objects are considered to be equal if then have the same Ticks.