Compares two TdTimeWithTimeZones to determine whether the operand is equal to the operand.
Parameters
- left
- An instance of TdTimeWithTimeZones.
- right
- An instance of TdTimeWithTimeZones.
Return Value
A boolean is returned that indicates the result of the comparison.
Following example shows that the Equality operator can safely be used in an if statement.
TdTimeWithTimeZone x = TdTimeWithTimeZone.Null;
TdTimeWithTimeZone y = TdTimeWithTimeZone.MinValue;
if (x == y)
{
// x is equal to y.
Console.WriteLine(@"X is equal to Y").
}
else
{
// x is not equal y
Console.WriteLine(@"X is not equal to Y").
}
y = TdTimeWithTimeZone.Null;
if (x == y)
{
// x is equal to y.
Console.WriteLine(@"X is equal to Y").
}
else
{
// x is not equal y
Console.WriteLine(@"X is not equal to Y").
}
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