CSharpFeeds - All your C# feeds in one place.

Wednesday, December 02, 2009

Very odd OutOfMemoryException issue with GetHashCode(string)

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 ]

Subscribe

New Feed

Product Spotlight

Recently Updated Sources

Legal Note

The content of the postings is owned by the respective author. CSharpFeeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on CSharpFeeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.

Advertise with us