NumericStringComparer(T).Compare Method
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Compares two objects and returns an indication of their
relative sort order.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public override int Compare( T x, T y )
Public Overrides Function Compare ( x As T, y As T ) As Integer Dim instance As NumericStringComparer Dim x As T Dim y As T Dim returnValue As Integer returnValue = instance.Compare(x, y)
public: virtual int Compare( T x, T y ) override
abstract Compare : x : 'T * y : 'T -> int override Compare : x : 'T * y : 'T -> int
Parameters
Return Value
Type: Int32| Value | Meaning |
|---|---|
| Less than zero | x is less than y or x is . |
| Zero | x equals y. |
| Greater than zero | x is greater than y or y is . |
Implements
IComparerTCompare(T, T)
Remarks
The two objects will be converted to strings using their ToString
methods before performing the comparison.