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



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

Return Value

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

false will be returned if:

true will be returned if:

Refer to TdTimestampWithTimeZone.CompareTo for more information.

Example
The following code example uses various comparison methods and operators:
TdTimestampWithTimeZone  later = new TdTimestampWithTimeZone(new DateTime(2010, 8, 31, 23, 30, 0), new TimeSpan(-8, 0, 0));
Object earlier = new TdTimestampWithTimeZone(new DateTime(2010, 8, 31, 15, 21, 0), new TimeSpan(-8, 0, 0));
 
// The following comparison is equivalent to using
//    false == TdTimestampWithTimeZone.Equals(later, (TdTimestampWithTimeZone) earlier)
//    later != (TdTimestampWithTimeZone) earlier
//    true == TdTimestampWithTimeZone.NotEquals(later, (TdTimestampWithTimeZone) 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

TdTimestampWithTimeZone Structure
TdTimestampWithTimeZone Members
Overload List