'Usage Dim instance As TdIntervalYearToMonth Dim obj As Object Dim value As Boolean value = instance.Equals(obj)
Parameters
- obj
- TdIntervalYearToMonth that will be compared to this instance of TdIntervalYearToMonth.
'Usage Dim instance As TdIntervalYearToMonth 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 TdIntervalYearToMonth.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 a TdIntervalYearToMonth with 5 years, 1 month and a precision of 4 TdIntervalYearToMonth firstInterval = new TdIntervalYearToMonth(5, 1, 4); // Create a TdIntervalYearToMonth with 20 years, 2 months and a precision of 4 Object intervalObj = new TdIntervalYearToMonth(20, 2, 4); // The following comparison methods and operators are equivalent if (false == TdIntervalYearToMonth.Equals(firstInterval, (TdIntervalYearToMonth)intervalObj) || firstInterval != (TdIntervalYearToMonth)intervalObj || false == firstInterval.Equals(intervalObj) ) { Console.WriteLine(“firstInterval does not equal intervalObj”); }
Product | Versions | Platforms |
---|---|---|
.NET | 2.1, 3.1, 6 | Windows, Linux, MacOS |
.NET Framework | 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 | Windows |
.NET Standard | 2.0 | Windows, Linux, MacOS |