Added hammock project to debug streaming issues
[pithos-ms-client] / trunk / hammock / src / net35 / ICSharpCode.SharpZipLib.Silverlight / Compat / Extensions.cs
1 using System;
2 using System.Globalization;
3
4 namespace ICSharpCode.SharpZipLib.Silverlight.Compat
5 {
6     public static class Extensions
7     {
8         public static int Compare(this string left, string right, bool ignoreCase, CultureInfo info)
9         {
10             if (info == null)
11             {
12                 throw new ArgumentNullException("CultureInfo cannot be null!");
13             }
14             return ignoreCase
15                        ? info.CompareInfo.Compare(left, right, CompareOptions.IgnoreCase)
16                        : info.CompareInfo.Compare(left, right, CompareOptions.None);
17         }
18     }
19 }