'Usage Dim instance As TdIntervalDayToSecond Dim obj As Object Dim value As Boolean value = instance.Equals(obj)
Parameters
- obj
- TdIntervalDayToSecond that will be compared to this instance of TdIntervalDayToSecond.
'Usage Dim instance As TdIntervalDayToSecond Dim obj As Object Dim value As Boolean value = instance.Equals(obj)
The return value is true
if the instance is equal to the obj, false
otherwise.
Return Value | Description |
---|---|
true |
This instance and obj are TdIntervalDayToSecond.Null. -or- This instance is equal to obj. |
false |
This instance is not equal to obj. -or- This instance is not Null and obj is Null. -or- This instance is Null and obj is not Null -or- obj is a null reference. |
// Create TdIntervalDayToSecond with 5 days, 1 hour, 30 minutes, 0 seconds, // 0 fractional seconds with maximum precision and maximum scale TdIntervalDayToSecond firstInterval = new TdIntervalDayToSecond(5, 1, 30, 0, 0); // Create TdIntervalDayToSecond with 20 days, 2 hour, 30 minutes, 0 seconds, // 0 fractional seconds with maximum precision and maximum scale Object intervalObj = new TdIntervalDayToSecond(20, 2, 30, 0, 0); // The following comparison methods and operators are equivalent if (false == TdIntervalDayToSecond.Equals(firstInterval, (TdIntervalDayToSecond)intervalObj) || firstInterval != (TdIntervalDayToSecond)intervalObj || false == firstInterval.Equals(intervalObj) ) { Console.WriteLine(“firstInterval does not equal intervalObj”); }
Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019