Key Comparer. Compare(String, String) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Compares two strings.
public: virtual int Compare(System::String ^ x, System::String ^ y);
public int Compare (string x, string y);
abstract member Compare : string * string -> int override this.Compare : string * string -> int
Public Function Compare (x As String, y As String) As Integer
Less than 0 if x is less than y, 0 if x is equal to y and greater than 0 if x is greater than y.