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



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

Parameters

left
A TdIntervalHour instance.
right
A TdIntervalHour instance.

Return Value

true if the two TdIntervalHour 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 TdIntervalHour.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 TdIntervalHour with 5 days, 4 hours and max precision
TdIntervalHour firstInterval = new TdIntervalHour(124, 4);
// Create a TdIntervalHour with 20 days, 4 hours and max precision
TdIntervalHour secondInterval = new TdIntervalHour(484, 4);
 
// The following comparison methods and operators are equivalent
if (false == TdIntervalHour.Equals(firstInterval, secondInterval) ||
    firstInterval != secondInterval ||
    true == TdIntervalHour.NotEquals(firstInterval, secondInterval) )
{
   Console.WriteLine(“firstInterval does not equal secondInterval”);
}
Requirements

Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2

See Also

Reference

TdIntervalHour Structure
TdIntervalHour Members
Overload List