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



Teradata.Client.Provider Namespace > TdIntervalDayToHour Structure > Equals Method : Equals(TdIntervalDayToHour,TdIntervalDayToHour) Method
A TdIntervalDayToHour instance.
A TdIntervalDayToHour instance.
Compares two TdIntervalDayToHour instances to determine whether they are equal.
Syntax
'Declaration
 
Public Overloads Shared Function Equals( _
   ByVal left As TdIntervalDayToHour, _
   ByVal right As TdIntervalDayToHour _
) As Boolean
'Usage
 
Dim left As TdIntervalDayToHour
Dim right As TdIntervalDayToHour
Dim value As Boolean
 
value = TdIntervalDayToHour.Equals(left, right)
public static bool Equals( 
   TdIntervalDayToHour left,
   TdIntervalDayToHour right
)
public:
static bool Equals( 
   TdIntervalDayToHour left,
   TdIntervalDayToHour right
) 

Parameters

left
A TdIntervalDayToHour instance.
right
A TdIntervalDayToHour instance.

Return Value

true if the two TdIntervalDayToHour instances are equal, false otherwise.
Remarks

The return value is true if the left is equal to the right, false otherwise.

Return Value Description
true

left is equal to right

-or-

left and right are TdIntervalDayToHour.Null.

false

left is not equal to right

-or-

left is not Null and right is Null

-or-

left is Null and right is not Null.

Example
The following code example uses various comparison methods and operators.
// Create a TdIntervalDayToHour with 5 days, 4 hours and default precision
TdIntervalDayToHour firstInterval = new TdIntervalDayToHour(5, 4);
// Create a TdIntervalDayToHour with 20 days, 4 hours and default precision
TdIntervalDayToHour secondInterval = new TdIntervalDayToHour(20, 4);
 
// The following comparison methods and operators are equivalent
if (false == TdIntervalDayToHour.Equals(firstInterval, secondInterval) ||
    firstInterval != secondInterval ||
    true == TdIntervalDayToHour.NotEquals(firstInterval, secondInterval) )
{
   Console.WriteLine(“firstInterval does not equal secondInterval”);
}
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

TdIntervalDayToHour Structure
TdIntervalDayToHour Members
Overload List