C# Class System.Collections.HashHelpers

Exibir arquivo Open project: dotnet/corefx

Public Properties

Property Type Description
primes int[]
s_UseRandomizedStringHashing bool

Public Methods

Method Description
ExpandPrime ( int oldSize ) : int
GetEqualityComparerForSerialization ( object comparer ) : object
GetPrime ( int min ) : int
GetRandomizedEqualityComparer ( object comparer ) : IEqualityComparer
IsPrime ( int candidate ) : bool
IsWellKnownEqualityComparer ( object comparer ) : bool

Private Methods

Method Description
GetEntropy ( ) : long

Method Details

ExpandPrime() public static method

public static ExpandPrime ( int oldSize ) : int
oldSize int
return int

GetEqualityComparerForSerialization() public static method

public static GetEqualityComparerForSerialization ( object comparer ) : object
comparer object
return object

GetPrime() public static method

public static GetPrime ( int min ) : int
min int
return int

GetRandomizedEqualityComparer() public static method

public static GetRandomizedEqualityComparer ( object comparer ) : IEqualityComparer
comparer object
return IEqualityComparer

IsPrime() public static method

public static IsPrime ( int candidate ) : bool
candidate int
return bool

IsWellKnownEqualityComparer() public static method

public static IsWellKnownEqualityComparer ( object comparer ) : bool
comparer object
return bool

Property Details

primes public_oe static_oe property

public static int[] primes
return int[]

s_UseRandomizedStringHashing public_oe static_oe property

public static bool s_UseRandomizedStringHashing
return bool