StringLengthComparerCompare Method
Compares two String and returns a value
indicating whether one has length less than, length equal to, or length greater than the other.
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 a,
string b
)
Public Function Compare (
a As String,
b As String
) As Integer
Dim instance As StringLengthComparer
Dim a As String
Dim b As String
Dim returnValue As Integer
returnValue = instance.Compare(a, b)
public:
virtual int Compare(
String^ a,
String^ b
) sealed
abstract Compare :
a : string *
b : string -> int
override Compare :
a : string *
b : string -> int
No code example is currently available or this language may not be supported.
- a String
-
The first String to compare.
- b String
-
The second String to compare.
Int32
A signed integer that indicates the relative values of
a and
b.
0:
a equals
b.
Less than 0:
a is less than
b.
Greater than 0:
a is greater than
b.
IComparerTCompare(T, T)