Questions tagged [weak-events]

Events that don't hold strong references to their subscribers.

Events that don't hold strong references to their subscribers. Therefore, an object that subscribes to a weak event is eligible for garbage collection, when there are no strong references to it.

31 questions
0
votes
1 answer

C# Is it possible to use the weak event pattern with a static class?

I have a static class I was using because I didn't like the idea of passing around a gigantic settings file, but then I wished to be able to have instances subscribe to static events on the static class. I was looking into using the…
James Joshua Street
  • 3,259
  • 10
  • 42
  • 80
1 2
3