StringNaturalComparerCompare Method
Namespace: DevCase.Runtime.TypeComparersAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public int Compare(
string first,
string second
)
Public Function Compare (
first As String,
second As String
) As Integer
Dim instance As StringNaturalComparer
Dim first As String
Dim second As String
Dim returnValue As Integer
returnValue = instance.Compare(first,
second)
public:
virtual int Compare(
String^ first,
String^ second
) sealed
abstract Compare :
first : string *
second : string -> int
override Compare :
first : string *
second : string -> int
No code example is currently available or this language may not be supported.
- first String
-
The first String to compare.
- second String
-
The second String to compare.
Int32
- Returns zero if the strings are identical.
(This value can be casted as:
Equals)
- Returns 1 if the string pointed to by 'first' has a greater value than that pointed to by 'second'.
(This value can be casted as:
GreaterThan)
- Returns -1 if the string pointed to by 'first' has a lesser value than that pointed to by 'second'.
(This value can be casted as:
LessThan)
IComparerTCompare(T, T)