5 Techniques to avoid Memory Leaks by Events in C# .NET you should know

from blog Blog posts on .NET Software Development, C#, and Debugging on Michael's Coding Spot, | ↗ original
Event registrations in C# (and .NET in general) are the most common cause of memory leaks. At least from my experience. In fact, I saw so much memory leaks from events that seeing += in code immediately makes me suspicious. While events are great, they are also dangerous. Causing a memory leak is very easy with events if you don’t know what to...