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



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

Parameters

left
A TdIntervalDayToSecond instance.
right
A TdIntervalDayToSecond instance.

Return Value

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

Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019

See Also

Reference

TdIntervalDayToSecond Structure
TdIntervalDayToSecond Members
Overload List