For Babelfish Release 1.11.1.3

StringComparisonCompareToAsIntegers Method

Compares two strings, as if they were integers. This is often times needed when a relay value, or a firing point value is represented by a string, but is human readable as an integer. For example "Relay 01" or "Firing Poing 08". If a string and a integer (e.g. "A" vs "01") is compared, the integer has the higher value.

Definition

Namespace: Scopos.BabelFish.Helpers.Extensions
Assembly: BabelFish (in BabelFish.dll) Version: 1.11.1.4+b1da393815f6638555a663d9a94167ecabea5695
C#
public static int CompareToAsIntegers(
	this string x,
	string y
)

Parameters

x  String
y  String

Return Value

Int32

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also