Re: CallByAddress
- From: "Scott Seligman [MSFT]" <scosel@xxxxxxxxxxxxxxxxxxxx>
- Date: 26 Mar 2007 14:38:28 -0700
Alexander Mueller <millerax@xxxxxxxxxxx> wrote:
I know it's much easier if the class i want to sort implements a certain
interface e.g for comparing an item with another item of the same class
and returning an negative int, 0 or a positive int.
But this implies that the sorted class has to implement this interface.
I'm jumping in late, so I might be missing something, but can't you do
this with Events? I have a very old class at
http://www.scottandmichelle.net/scott/code/code-039.html
That implements a simple class to sort a collection. It's possible to
provide this class with a collection and have an Event handle the
comparison of the items in the calling class.
--
Scott Seligman [MSFT]
This posting is provided AS IS with no warranties, and confers
no rights.
.
- References:
- Re: CallByAddress
- From: Alexander Mueller
- Re: CallByAddress
- From: Mark Yudkin
- Re: CallByAddress
- Prev by Date: Re: CallByAddress
- Next by Date: Re: CallByAddress
- Previous by thread: Re: CallByAddress
- Next by thread: Re: CallByAddress
- Index(es):
Relevant Pages
|