C#, 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/25 23:53 UTC
Read the original article Hit count: 163

Filed under:
|
|

Hello,

I'm using for now List<> to iterate through some object collection and find matching element, The problem is that object has only 2 significant values Name and Link (strings) but has some other values wich I dont want to compare.

I'm thinkig about using something like HashSet (wich 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/

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