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



Teradata.Client.Provider Namespace > TdDate Structure > Equals Method : Equals(Object) Method
A TdDate that will be compared to this instance of TdDate.
Compares this instance against obj to determine whether they are equal.
Syntax
'Declaration
 
Public Overloads Overrides Function Equals( _
   ByVal obj As Object _
) As Boolean
'Usage
 
Dim instance As TdDate
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
A TdDate that will be compared to this instance of TdDate.

Return Value

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

The boolean that is returned indicates the following conditions:

false will be returned if:

true will be returned if:

Example
The following code example uses various comparison methods and operators:
TdDate  later = new TdDate(2010, 8, 31);
Object earlier = new TdDate(2007, 9, 10);
 
// The following comparison is equivalent to using
//    false == TdDate.Equals(later, (TdDate) earlier)
//    later != (TdDate) earlier
//    true == TdDate.NotEquals(later, (TdDate) earlier)
//    
if (false == later.Equals(earlier))
{
   Console.WriteLine(“later does not equal earlier”);
}
Requirements

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

See Also

Reference

TdDate Structure
TdDate Members
Overload List