| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- /**
- * Namespace: System.Web.Utils
- * Class: WebHashCodeProvider
- *
- * Author: Gaurav Vaish
- * Maintainer: [email protected]
- * Contact: <[email protected]>, <[email protected]>
- * Implementation: yes
- * Status: ??%
- *
- * (C) Gaurav Vaish (2001)
- */
- using System.Collections;
- using System.Globalization;
- namespace System.Web.Utils
- {
- public class WebHashCodeProvider : IHashCodeProvider
- {
- private static IHashCodeProvider defHcp;
- public WebHashCodeProvider()
- {
- }
-
- int IHashCodeProvider.GetHashCode(object key)
- {
- return Default.GetHashCode(key);
- }
- public static IHashCodeProvider Default
- {
- get
- {
- if(defHcp==null)
- {
- defHcp = new CaseInsensitiveHashCodeProvider(CultureInfo.InvariantCulture);
- }
- return defHcp;
- }
- }
- }
- }
|