Using Custom Generic Collection faster with objects than List

Posted by Kaminari on Stack Overflow See other posts from Stack Overflow or by Kaminari
Published on 2010-04-25T23:50:38Z Indexed on 2010/04/26 6:53 UTC
Read the original article Hit count: 166

Filed under:
|
|

I'm iterating through a List<> to find a matching element. The problem is that object has only 2 significant values, Name and Link (both strings), but has some other values which I don't want to compare.

I'm thinking about using something like HashSet (which is exactly what I'm searching for -- fast) from .NET 3.5 but target framework has to be 2.0. There is something called Power Collections here: http://powercollections.codeplex.com/, should I use that?

But maybe there is other way? If not, can you suggest me a suitable custom collection?

© Stack Overflow or respective owner

Related posts about c#

Related posts about collections