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



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

Parameters

left
A TdIntervalSecond instance.
right
A TdIntervalSecond instance.

Return Value

true if the two TdIntervalSecond 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 TdIntervalSecond.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.
TdIntervalSecond firstInterval = new TdIntervalSecond(5, 15);
TdIntervalSecond secondInterval = new TdIntervalSecond(20, 15);
 
// The following comparison methods and operators are equivalent
if (false == TdIntervalSecond.Equals(firstInterval, secondInterval) ||
    firstInterval != secondInterval ||
    true == TdIntervalSecond.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

TdIntervalSecond Structure
TdIntervalSecond Members
Overload List