Class WeakEventHandler<T>
Provides methods for creating WeakEvent handlers.
[SuppressMessage("Microsoft.StyleCop.CSharp.MaintainabilityRules", "SA1402:FileMayOnlyContainASingleClass", Justification = "Template classes in the same unit")]
public class WeakEventHandler<T> : IWeakEventHandler where T : class
Type Parameters
TThe type of the event source.
- Inheritance
-
WeakEventHandler<T>
- Implements
Constructors
- WeakEventHandler(EventHandler, UnregisterCallback)
Constructs a new WeakEventHandler.
Properties
- Handler
Get an event handler.
Methods
- Invoke(object, EventArgs)
Invokes the event handler if the source is still alive.