Send feedback on this topic.
Teradata.Client.Provider
CompareTo(TdPeriodDate) Method



Teradata.Client.Provider Namespace > TdPeriodDate Structure > CompareTo Method : CompareTo(TdPeriodDate) Method
The TdPeriodDate to compare against.
Compares this instance to the specified TdPeriodDate other.
Syntax
'Declaration
 
Public Overloads Function CompareTo( _
   ByVal other As TdPeriodDate _
) As Integer
'Usage
 
Dim instance As TdPeriodDate
Dim other As TdPeriodDate
Dim value As Integer
 
value = instance.CompareTo(other)
public int CompareTo( 
   TdPeriodDate other
)
public:
int CompareTo( 
   TdPeriodDate other
) 

Parameters

other
The TdPeriodDate to compare against.

Return Value

The result of the comparison is returned as an integer.
Remarks

The integer returned when this instance is compared to other indicates the following:

Return Value Meaning
Less than zero

This instance is less than other.

-or-

This instance is TdPeriodDate.Null.


Comparison Algorithm

this.Begin < other.Begin OR (this.Begin == other.Begin AND this.End < other.End)

Zero

This instance is equal to other.

-or-

This instance and other are Null.


Comparison Algorithm

this.Begin == other.Begin AND this.End == other.End

Greater than zero

This instance is greater than other.

-or-

other is Null.


Comparison Algorithm

this.Begin > other.Begin OR (this.Begin == other.Begin AND this.End > other.End)

Requirements
ProductVersionsPlatforms
.NET2.1, 3.1, 6Windows, Linux, MacOS
.NET Framework4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdPeriodDate Structure
TdPeriodDate Members
Overload List