- 
                Notifications
    You must be signed in to change notification settings 
- Fork 35
M_CodeJam_Strings_NaturalOrderStringComparer_Compare
        Andrew Koryavchenko edited this page Jul 4, 2017 
        ·
        5 revisions
      
    Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
Namespace: CodeJam.Strings
Assembly: CodeJam (in CodeJam.dll) Version: 1.1.0.0 (1.1.0.0)
C#
public static int Compare(
	string a,
	string b
)VB
Public Shared Function Compare ( 
	a As String,
	b As String
) As IntegerF#
static member Compare : 
        a : string * 
        b : string -> int 
- a
- Type: System.String
 The first object to compare.
- b
- Type: System.String
 The second object to compare.
Type: Int32
A signed integer that indicates the relative values of a and b, as shown in the following table. Value Meaning Less than zero a is less than b. Zero a equals b. Greater than zero a is greater than b.
NaturalOrderStringComparer Class
Compare Overload
CodeJam.Strings Namespace