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



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

Return Value

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

false will be returned if:

true will be returned if:

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

TdTime Structure
TdTime Members
Overload List