Create Comparer associated with the Thread.CurrentCulture of the current thread in CSharp
Description
The following code shows how to create Comparer associated with the Thread.CurrentCulture of the current thread.
Example
/*from w ww . j a va2 s . c o m*/
using System;
using System.Collections;
using System.Globalization;
public class SamplesComparer {
public static void Main() {
String str1 = "abc";
String str2 = "aabc";
Console.WriteLine(Comparer.Default.Compare( str1, str2 ) );
}
}
The code above generates the following result.