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/CaseInsensitiveHashCodeProvider.cs')
-rw-r--r--mcs/class/corlib/System.Collections/CaseInsensitiveHashCodeProvider.cs92
1 files changed, 0 insertions, 92 deletions
diff --git a/mcs/class/corlib/System.Collections/CaseInsensitiveHashCodeProvider.cs b/mcs/class/corlib/System.Collections/CaseInsensitiveHashCodeProvider.cs
deleted file mode 100644
index 109ae18a40b..00000000000
--- a/mcs/class/corlib/System.Collections/CaseInsensitiveHashCodeProvider.cs
+++ /dev/null
@@ -1,92 +0,0 @@
-//
-// System.Collections.CaseInsensitiveHashCodeProvider
-//
-// Author:
-// Sergey Chaban (serge@wildwestsoftware.com)
-//
-
-
-
-using System;
-using System.Collections;
-
-
-
-namespace System.Collections {
-
- [Serializable]
- public class CaseInsensitiveHashCodeProvider : IHashCodeProvider {
-
- private static CaseInsensitiveHashCodeProvider singleton;
-
-
- // Class constructor
-
- static CaseInsensitiveHashCodeProvider ()
- {
- singleton=new CaseInsensitiveHashCodeProvider ();
- }
-
-
-
- // Public instance constructor
-
- public CaseInsensitiveHashCodeProvider ()
- {
- }
-
-
-
- //
- // Public static properties
- //
-
- public static CaseInsensitiveHashCodeProvider Default {
- get {
- return singleton;
- }
- }
-
-
- //
- // Instance methods
- //
-
- //
- // IHashCodeProvider
- //
-
- [MonoTODO]
- public int GetHashCode (object obj)
- {
- if (obj == null) {
- throw new ArgumentNullException ("obj is null");
- }
-
- string str = obj as string;
-
- if (str == null) {
- // FIXME:
- return 0;
- }
-
- int h = 0;
- char c;
-
- if (str.Length > 0) {
- for (int i = 0;i<str.Length;i++) {
- c = str [i];
-
- if (Char.IsLetter (c))
- c = Char.ToLower (c);
-
- h = h * 31 + c;
- }
- }
-
- return h;
- }
-
- } // CaseInsensitiveHashCodeProvider
-}
-