Re: ArrayList Contains
- From: "Nick Hounsome" <News@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 08 May 2006 10:13:50 GMT
"HarvSather" <harvsather@xxxxxxx> wrote in message
news:%23xDoA9mcGHA.1264@xxxxxxxxxxxxxxxxxxxxxxx
Well, I found the answer
I was declaring the Equals method with the wrong signature
Initially I had
public bool Equals(clsValueListItems vobjItem)
but it should be
public override bool Equals(object vobjItem)
Always use intellisense - it saves a lot of problems - You can start the
line with "override" rather than public and it will sort it all out nicely
for you when you've decided what you are overriding.
Of course if you had put override in anyway the compiler would have told you
that you weren't overriding anything.
.
- References:
- ArrayList Contains
- From: HarvSather
- Re: ArrayList Contains
- From: Michael Nemtsev
- Re: ArrayList Contains
- From: HarvSather
- Re: ArrayList Contains
- From: HarvSather
- ArrayList Contains
- Prev by Date: Re: Simple optimization
- Next by Date: Re: Simple optimization
- Previous by thread: Re: ArrayList Contains
- Next by thread: Re: ArrayList Contains
- Index(es):
Relevant Pages
|