Send feedback on this topic.
Teradata.Client.Provider
Equals(Object) Method
Example 



Teradata.Client.Provider Namespace > TdIntervalDayToMinute Structure > Equals Method : Equals(Object) Method
TdIntervalDayToMinute that will be compared to this instance of TdIntervalDayToMinute.
Compares this instance and obj to determine whether they are equal.
Syntax
'Declaration
 
Public Overloads Overrides Function Equals( _
   ByVal obj As Object _
) As Boolean
'Usage
 
Dim instance As TdIntervalDayToMinute
Dim obj As Object
Dim value As Boolean
 
value = instance.Equals(obj)
public override bool Equals( 
   object obj
)
public:
bool Equals( 
   Object^ obj
) override 

Parameters

obj
TdIntervalDayToMinute that will be compared to this instance of TdIntervalDayToMinute.

Return Value

true if the two TdIntervalDayToMinutes are equal, false otherwise.
Remarks

The return value is true if the instance is equal to the obj, false otherwise.

Return Value Description
true

This instance and obj are TdIntervalDayToMinute.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.

Example
The following code example uses various comparison methods and operators.
// Create TdIntervalDayToMinute with 5 days, 1 hour, 30 minutes and default precision
TdIntervalDayToMinute firstInterval = new TdIntervalDayToMinute(5, 1, 30);
// Create TdIntervalDayToMinute with 20 days, 2 hour, 30 minutes and default precision
Object intervalObj = new TdIntervalDayToMinute(20, 2, 30);
 
// The following comparison methods and operators are equivalent
if (false == TdIntervalDayToMinute.Equals(firstInterval, (TdIntervalDayToMinute)intervalObj) ||
    firstInterval != (TdIntervalDayToMinute)intervalObj ||
    false == firstInterval.Equals(intervalObj) )
{
   Console.WriteLine(“firstInterval does not equal intervalObj”);
}
Requirements
ProductVersionsPlatforms
.NET2.1, 3.1, 6Windows, Linux, MacOS
.NET Framework4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdIntervalDayToMinute Structure
TdIntervalDayToMinute Members
Overload List