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



Teradata.Client.Provider Namespace > TdNumber Structure > Equals Method : Equals(Object) Method
TdNumber instance that will be compared to this instance of TdNumber.
Compares this instance and obj to determine whether they are equal.
Syntax
'Declaration
 
Public Overloads Overrides Function Equals( _
   ByVal obj As Object _
) As Boolean
'Usage
 
Dim instance As TdNumber
Dim obj As Object
Dim value As Boolean
 
value = instance.Equals(obj)
public override bool Equals( 
   object obj
)
public:
bool Equals( 
   Object^ obj
) override 

Parameters

obj
TdNumber instance that will be compared to this instance of TdNumber.

Return Value

true is returned if the two TdNumbers are equal, false otherwise.
Remarks

false will be returned if:

true will be returned if:

Example
The following code example uses various comparison methods and operators:
// The M is used to indicate that the numeric literal is a System.Decimal
TdNumber  large = new TdNumber(32425643243167.43433M);
Object medium = new TdNumber(89732.4543M);
 
// The following comparison is equivalent to using
//    false == TdNumber.Equals(large, (TdNumber) medium)
//    large != (TdNumber) medium
//    true == TdNumber.NotEquals(large, (TdNumber) medium)
//    
if (false == large.Equals(medium))
{
   Console.WriteLine("large does not equal medium");
}
Requirements

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

See Also

Reference

TdNumber Structure
TdNumber Members
Overload List