Compares this instance and to determine whether they are equal.
Parameters
- obj
- TdIntervalMinute that will be compared to this instance of TdIntervalMinute.
Return Value
true
if the two TdIntervalMinutes are equal, false
otherwise.
The following code example uses various comparison methods and operators.
// Create TdIntervalMinute with 5 days, 1 hour, 30 minutes
TdIntervalMinute firstInterval = new TdIntervalMinute(7290);
// Create TdIntervalMinute with 20 hours, 30 minutes
Object intervalObj = new TdIntervalMinute(1230);
// The following comparison methods and operators are equivalent
if (false == TdIntervalMinute.Equals(firstInterval, (TdIntervalMinute)intervalObj) ||
firstInterval != (TdIntervalMinute)intervalObj ||
false == firstInterval.Equals(intervalObj) )
{
Console.WriteLine(“firstInterval does not equal intervalObj”);
}
Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2