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



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

Parameters

left
A TdIntervalMonth instance.
right
A TdIntervalMonth instance.

Return Value

true if the two TdIntervalMonth 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 TdIntervalMonth.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 TdIntervalMonth containing 5 months and a precision of 4 significant digits
TdIntervalMonth firstInterval = new TdIntervalMonth(5, 4);
// create a TdIntervalMonth containing 20 months and a precision of 4 significant digits
TdIntervalMonth secondInterval = new TdIntervalMonth(20, 4);
 
// The following comparison methods and operators are equivalent
if (false == TdIntervalMonth.Equals(firstInterval, secondInterval) ||
    firstInterval != secondInterval ||
    true == TdIntervalMonth.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

TdIntervalMonth Structure
TdIntervalMonth Members
Overload List