Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

NumericStringComparer(T).Compare Method

  • Last UpdatedJan 12, 2026
  • 2 minute read
NumericStringComparer(T).Compare Method
Compares two objects and returns an indication of their relative sort order.

Namespace:  OSIsoft.AF
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7

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

x
Type: T
The first object to compare.
y
Type: T
The second object to compare.

Return Value

Type: Int32
ValueMeaning
Less than zerox is less than y or x is .
Zerox equals y.
Greater than zerox 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.

Version Information

AFSDK


See Also

In This Topic