Re: comparing objects

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



No? Could you go into more detail? Im actually using the
myCol.Contains(foo) method.

Thanks for your help.


"Arne Vajhøj" <arne@xxxxxxxxxx> wrote in message
news:uQg_g.22666$2g4.22379@xxxxxxxxxxxxx
netnet wrote:
I have a collection of objects that I store in the session. Then I look
in that collection to see if the collection.contains an object. it
answers false. If I dont store that collection in the session it answers
true. Is the session somehow modifying the collection? The objects
look identical.

Does your class have a proper Equals method ?

Arne


.