IList Contains

J

J Holsinger

Does anybody know how the IList Contains method compares objects when doing
a search through the innerList? For objects stored w/o a key will Contains
make a binary comparion of the stored objects fields?
 
J

J Holsinger

Hi Sahil, thanks for responding.

My question is related to the use of IList in the CollectionBase class for a
client server implementation. I don't understand how the .net Framework
stores references to objects in a list class that are unique without the
explicit use of a key, say for example the way HashTable behaves. If I
create a custom strongly type Collection class in a server for a client
custom object based upon the class CollectionBase, I can implement it in
such way that I can always find my custom objects with one line of code.
For instance: FoundObj As CustomObject =
CustomStronglyTypedCollection.Item(CustomStronglyTypedCollection.Contains(xO
bj)).
Where is the 'handle' or reference for my custom object stored? How would I
know it is unique across a single instance being served in the
CustomStronglyTypedCollection to many clients?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top