Method PrepareForWriting
PrepareForWriting(ref ListenerList)
If the given list is in use (which means an event is currently being delivered), replace it with a clone. The existing users will finish delivering the event to the original list, without interference from changes to the new list.
public static bool PrepareForWriting(ref WeakEventManager.ListenerList list)
Parameters
Returns
- bool
True if the list was cloned. Callers will probably want to insert the new list in their own data structures.