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



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

Return Value

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

false will be returned if:

true will be returned if:

Refer to TdTimeWithTimeZone.CompareTo for more information on comparing TdTimeWithTimeZone values.

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

TdTimeWithTimeZone Structure
TdTimeWithTimeZone Members
Overload List