Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/corlib/System.Collections/CaseInsensitiveComparer.cs')
-rw-r--r--mcs/class/corlib/System.Collections/CaseInsensitiveComparer.cs77
1 files changed, 0 insertions, 77 deletions
diff --git a/mcs/class/corlib/System.Collections/CaseInsensitiveComparer.cs b/mcs/class/corlib/System.Collections/CaseInsensitiveComparer.cs
deleted file mode 100644
index b04c89aa11d..00000000000
--- a/mcs/class/corlib/System.Collections/CaseInsensitiveComparer.cs
+++ /dev/null
@@ -1,77 +0,0 @@
-//
-// System.Collections.CaseInsensitiveComparer
-//
-// Author:
-// Sergey Chaban (serge@wildwestsoftware.com)
-//
-
-
-
-using System;
-using System.Collections;
-
-
-
-namespace System.Collections {
-
- [Serializable]
- public class CaseInsensitiveComparer : IComparer {
-
- private static CaseInsensitiveComparer singleton;
-
-
- // Class constructor
-
- static CaseInsensitiveComparer ()
- {
- singleton=new CaseInsensitiveComparer ();
- }
-
-
- // Public instance constructor
-
- public CaseInsensitiveComparer ()
- {
- }
-
-
-
- //
- // Public static properties
- //
-
- public static CaseInsensitiveComparer Default {
- get {
- return singleton;
- }
- }
-
-
- //
- // Instance methods
- //
-
- //
- // IComparer
- //
-
- public int Compare (object a, object b)
- {
- string str1 = a as string;
- string str2 = b as string;
-
-
- int res = 0;
-
- if (str1 != null && str2 != null) {
- res = String.Compare (str1, str2, true);
- }
-
- return res;
- }
-
-
-
- } // CaseInsensitiveComparer
-}
-