Sage Modeling and Simulation Library

NameComparer<(Of <(<'T>)>)>..::..Compare Method

Compares two objects and returns a value indicating whether the name of one is less than, equal to, or greater than the name of the other.

Namespace:  Highpoint.Sage.Utility
Assembly:  Sage4 (in Sage4.dll)


public int Compare(
	T x,
	T y


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

Return Value

A signed integer that indicates the relative values of x and y, as shown in the following table.Value Meaning Less than zerox is less than y.Zerox equals y.Greater than zerox is greater than y.