Re: Reusing Delegate objects
- From: "Wessel Troost" <nothing@xxxxxxxxxxxx>
- Date: Sun, 24 Jul 2005 12:02:06 +0200
What I am trying to accomplish is that when any of the 64 datapoint instances fires it's changed event, my client instance receives notification of this.
That will work using the single delegate.
If efficiency is really an issue, you might want to work around having arrays of objects fire events. You could define the change function in the DataPoints object, like:
class DataPoints
{
public ChangeDataPoint( int iDatapointNumber, int iNewValue );
}When the ChangeDataPoint function is called, the DataPoints class knows a change is about to happen. In that way you are avoiding the overhead of 64+ events.
Greetings, Wessel .
- References:
- Reusing Delegate objects
- From: Tedb
- Re: Reusing Delegate objects
- From: Wessel Troost
- Re: Reusing Delegate objects
- From: Tedb
- Reusing Delegate objects
- Prev by Date: Re: Data Layer architecture
- Next by Date: Re: DataView.get_Item throws a NullReferenceException
- Previous by thread: Re: Reusing Delegate objects
- Next by thread: Need Setup and deployment project examples on VS.NET
- Index(es):