Compares two
TdIntervalDay instances to determine whether they are equal.
Parameters
- left
- A TdIntervalDay instance.
- right
- A TdIntervalDay instance.
Return Value
true
if the two TdIntervalDay instances are equal, false
otherwise.
The following code example uses various comparison methods and operators.
// Create a TdIntervalDay with 5 days with max precision
TdIntervalDay firstInterval = new TdIntervalDay(5, 4);
// Create a TdIntervalDay with 20 days and max precision
TdIntervalDay secondInterval = new TdIntervalDay(20, 4);
// The following comparison methods and operators are equivalent
if (false == TdIntervalDay.Equals(firstInterval, secondInterval) ||
firstInterval != secondInterval ||
true == TdIntervalDay.NotEquals(firstInterval, secondInterval) )
{
Console.WriteLine(“firstInterval does not equal secondInterval”);
}
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