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.

Definition

Namespace: DevCase.Runtime.TypeComparers
Assembly: 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
)

Parameters

a  String
The first String to compare.
b  String
The second String to compare.

Return Value

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.

Implements

IComparerTCompare(T, T)

See Also