in .NET, some strings will have the same hash code
05/25/2009
Console.WriteLine("0.89265452879139".GetHashCode()); Console.WriteLine("0.280527401380486".GetHashCode());
Do you know what will happen in .NET ? Have a try:
2060653827
2060653827
these 2 string share the same hash code!
Posted in: .Net Programming| Tags: C# GetHashCode Hash Hashcode string pre style color code span class