mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 01:41:17 -10:00
* WebEqualComparer.cs: * WebHashCodeProvider.cs: * FileAction.cs: * FileChangeEventHandler.cs: * NativeFileChangeEventHandler.cs: Monostyled header, internalized svn path=/trunk/mcs/; revision=21939
41 lines
716 B
C#
41 lines
716 B
C#
//
|
|
// System.Web.Util.WebHashCodeProvider.cs
|
|
//
|
|
// Authors:
|
|
// Gaurav Vaish ([email protected], [email protected])
|
|
//
|
|
// (c) Gaurav Vaish 2001
|
|
//
|
|
|
|
using System.Collections;
|
|
using System.Globalization;
|
|
|
|
namespace System.Web.Util
|
|
{
|
|
internal 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;
|
|
}
|
|
}
|
|
}
|
|
}
|