'Usage Dim instance As TdIntervalSecond Dim obj As Object Dim value As Boolean value = instance.Equals(obj)
Parameters
- obj
- TdIntervalSecond that will be compared to this instance of TdIntervalSecond.
'Usage Dim instance As TdIntervalSecond 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 TdIntervalSecond.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 TdIntervalSecond with 121 minutes, 30 seconds, 500 microseconds // default precision and scale TdIntervalSecond firstInterval = new TdIntervalSecond(7290, 500); // Create TdIntervalSecond with 50 minutes, 30 seconds, 900 microseconds // default precision and scale Object intervalObj = new TdIntervalSecond(3030, 900); // The following comparison methods and operators are equivalent if (false == TdIntervalSecond.Equals(firstInterval, (TdIntervalSecond)intervalObj) || firstInterval != (TdIntervalSecond)intervalObj || false == firstInterval.Equals(intervalObj) ) { Console.WriteLine(“firstInterval does not equal intervalObj”); }
Product | Versions | Platforms |
---|---|---|
.NET | 6, 7 | Windows, Linux, MacOS |
.NET Framework | 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 | Windows |
.NET Standard | 2.0 | Windows, Linux, MacOS |