// Create interval with 5 days, 4 hours, 15 minutes and 0 seconds
TdIntervalDayToSecond firstInterval = new TdIntervalDayToSecond(5, 4, 15, 0);
// Create interval with 20 days, 4 hours, 15 minutes and 0 seconds
TdIntervalDayToSecond secondInterval = new TdIntervalDayToSecond(20, 4, 15, 0);
 
// The following comparison methods and operators are equivalent
if (false == TdIntervalDayToSecond.Equals(firstInterval, secondInterval) ||
    firstInterval != secondInterval ||
    true == TdIntervalDayToSecond.NotEquals(firstInterval, secondInterval) )
{
   Console.WriteLine(“firstInterval does not equal secondInterval”);
}