> .net 2.0
>
[quoted text clipped - 6 lines]
> 1, "CRASH"
> 1, "NOOB"
Eh... No, it doesn't. You can't have several items with the same key.
> I want to perform a check against this dictionay object to determine if a
> specific key & value already exists in the dictionay object.
To use a dictionary efficiently, you should check against the key only.
If the unique value of the item consists of several properties, you
should construct a single value from those properties that you can use
as key.
> the main goal with this code is that I have a foreach loop where I loop
> through a result from a DataTable.Select query, and for each row in the
> resultset I check if the value already exist in the dictionay. If it don't
> exist in the dictionay object I then add it. Trying to implement a "select
> distinct" feature
If you read the data from a database, it already has a distinct feature,
that is much faster.

Signature
Göran Andersson
_____
http://www.guffa.com