| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- /**
- * 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;
- namespace System.Web.Utils
- {
- public class WebHashCodeProvider : IHashCodeProvider
- {
- private static readonly 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;
- }
- }
- }
- }
|