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



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

Return Value

true is returned if the two TdTimestamp 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:
TdTimestamp  later = new TdTimestamp(new DateTime(2010, 8, 31, 23, 30, 0));
Object earlier = new TdTimestamp(new DateTime(2010, 8, 31, 15, 21, 0));
 
// The following comparison is equivalent to using
//    false == TdTimestamp.Equals(later, (TdTimestamp) earlier)
//    later != (TdTimestamp) earlier
//    true == TdTimestamp.NotEquals(later, (TdTimestamp) earlier)
//    
if (false == later.Equals(earlier))
{
   Console.WriteLine(“later does not equal earlier”);
}
Requirements

Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2

See Also

Reference

TdTimestamp Structure
TdTimestamp Members
Overload List