UIntPtr.CompareTo Method   
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| CompareTo(Object) | Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. | 
| CompareTo(UIntPtr) | Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. | 
CompareTo(Object)
- Source:
- UIntPtr.cs
- Source:
- UIntPtr.cs
- Source:
- UIntPtr.cs
- Source:
- UIntPtr.cs
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
public:
 virtual int CompareTo(System::Object ^ value);public int CompareTo(object? value);abstract member CompareTo : obj -> int
override this.CompareTo : obj -> intPublic Function CompareTo (value As Object) As IntegerParameters
- value
- Object
An object to compare, or null.
Returns
A value that indicates the relative order of the objects being compared. The return value has these meanings:
| Value | Meaning | 
|---|---|
| Less than zero | This instance precedes valuein the sort order. | 
| Zero | This instance occurs in the same position in the sort order as value. | 
| Greater than zero | This instance follows valuein the sort order. | 
Implements
Applies to
CompareTo(UIntPtr)
- Source:
- UIntPtr.cs
- Source:
- UIntPtr.cs
- Source:
- UIntPtr.cs
- Source:
- UIntPtr.cs
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
public:
 virtual int CompareTo(UIntPtr value);public int CompareTo(UIntPtr value);abstract member CompareTo : unativeint -> int
override this.CompareTo : unativeint -> intPublic Function CompareTo (value As UIntPtr) As IntegerParameters
- value
- 
				
				UIntPtr
unativeint 
An unsigned native integer to compare.
Returns
A value that indicates the relative order of the objects being compared. The return value has these meanings:
| Value | Meaning | 
|---|---|
| Less than zero | This instance precedes valuein the sort order. | 
| Zero | This instance occurs in the same position in the sort order as value. | 
| Greater than zero | This instance follows valuein the sort order. |