Re: Newbie question about object comparisons
- From: "Bruce Wood" <brucewood@xxxxxxxxxx>
- Date: 20 May 2005 12:21:04 -0700
You have probably already figured this out, but for the benefit of such
posterity as there is in a usenet group :-)
> However, in the business problem I'm trying to solve, the 'keys' are
not always
> strings. Indeed, I've got half a dozen custom objects that need to be
compared.
In that case I amend my recommended solution: use the Equals method.
The CLR will figure out (via virtual methods and overriding) which is
the correct Equals to call to compare your two keys.
.
- References:
- Newbie question about object comparisons
- From: damiensawyer
- Re: Newbie question about object comparisons
- From: Bruce Wood
- Re: Newbie question about object comparisons
- From: damiensawyer
- Newbie question about object comparisons
- Prev by Date: Re: listview column sort problem
- Next by Date: Re: listview column sort problem
- Previous by thread: Re: Newbie question about object comparisons
- Next by thread: when we change compiled mode from [Debug] to [Release], problem happened
- Index(es):
Relevant Pages
|