Compares two
TdIntervalMonth instances to determine whether they are equal.
Parameters
- left
- A TdIntervalMonth instance.
- right
- A TdIntervalMonth instance.
Return Value
true
if the two TdIntervalMonth instances are equal, false
otherwise.
The following code example uses various comparison methods and operators.
// create a TdIntervalMonth containing 5 months and a precision of 4 significant digits
TdIntervalMonth firstInterval = new TdIntervalMonth(5, 4);
// create a TdIntervalMonth containing 20 months and a precision of 4 significant digits
TdIntervalMonth secondInterval = new TdIntervalMonth(20, 4);
// The following comparison methods and operators are equivalent
if (false == TdIntervalMonth.Equals(firstInterval, secondInterval) ||
firstInterval != secondInterval ||
true == TdIntervalMonth.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