Windows Runtime delegates and object lifetime in C# and other GC languages

1 · Raymond Chen · May 22, 2019, 2 p.m.
In C# and other GC languages such as JavaScript, delegates (most typically used as event handlers) capture strong references to objects in their closures. This means that you can create reference cycles that are beyond the ability of the GC to collect. The post Windows Runtime delegates and object lifetime in C# and other GC languages appeared first on The Old New Thing....