|
by FransBouma via Frans Bouma's blog on 12/2/2009 10:12:33 AM
In .NET there's a class called StringComparer. It has some handy helpers, like the InvariantCultureIgnoreCase StringComparer. These classes also implement a method called GetHashCode(string), which produces the hashcode in the scope of the comparer, so if you're calling that method on the InvariantCultureIgnoreCase variant, you get the hashcode for that scope. This is handy as hashcodes are important, for example to find duplicates. We recently ran into an issue with this, as passing a large s
... [ read more ]
|
|