Hi,
The WeakDelegate allows to prevent memory leaks. If you find your WeakDelegate being null, please call a method instead of inline event.
The reason is that if your application registers an event on a static class, the object which registered the event will never be freed from the memory because it has a pointer to an object (static) that is never freed.
Linvi
The WeakDelegate allows to prevent memory leaks. If you find your WeakDelegate being null, please call a method instead of inline event.
The reason is that if your application registers an event on a static class, the object which registered the event will never be freed from the memory because it has a pointer to an object (static) that is never freed.
RateLimit.QueryAwaitingForRateLimit += QueryAwaitingForRateLimit; privatevoid QueryAwaitingForRateLimit(object sender, QueryAwaitingEventArgs e) { thrownew NotImplementedException(); }