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