Compares two TdTimestampWithTimeZones to determine whether the operand is equal to the operand.
Parameters
- left
- An instance of TdTimestampWithTimeZone.
- right
- An instance of TdTimestampWithTimeZone.
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.
TdTimestampWithTimeZone x = TdTimestampWithTimeZone.Null;
TdTimestampWithTimeZone y = TdTimestampWithTimeZone.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 = TdTimestampWithTimeZone.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 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019