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



Teradata.Client.Provider Namespace > TdDecimal Structure > Equals Method : Equals(Object) Method
TdDecimal instance that will be compared to this instance of TdDecimal.
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 TdDecimal
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
TdDecimal instance that will be compared to this instance of TdDecimal.

Return Value

true is returned if the two TdDecimals 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
TdDecimal  large = new TdDecimal(32425643243167.43433M);
Object medium = new TdDecimal(89732.4543M);
 
// The following comparison is equivalent to using
//    false == TdDecimal.Equals(large, (TdDecimal) medium)
//    large != (TdDecimal) medium
//    true == TdDecimal.NotEquals(large, (TdDecimal) medium)
//    
if (false == large.Equals(medium))
{
   Console.WriteLine("large does not equal medium");
}
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

TdDecimal Structure
TdDecimal Members
Overload List