WeakEvent pattern

There are 1 entries for the tag WeakEvent pattern
WeakEvent Pattern

Partiamo da un caso tanto semplice quanto comune: Una classe EventSource che genera un evento EventTriggered sottoscritto da un altra classe EventConsumer. EventSource: 1: class EventSource 2: { 3: public event EventHandler EventTriggered; 4:   5: public void DoRaise(){ 6: if (EventTriggered != null)EventTriggered(this, EventArgs.Empty); 7: } 8: ...

posted @ Monday, October 22, 2007 7:40 PM | Feedback (1)