memory-analyzers
memory-analyzers copied to clipboard
C# code analyzers for finding memory leaks
This problem came up with MAUI's `Frame` class, as `FrameRenderer` is not an `NSObject` but somehow produced a cycle that I could cause problems with at runtime. Examples: * https://github.com/dotnet/maui/pull/18552...
Related to: https://github.com/dotnet/roslyn-analyzers/issues/4369 Is there some idea to help find memory leaks with plain C# events and `+=`?
I don't think anything warns about code like this: ```csharp class MyView : UINavigationBar { public class MyView() { Items = new[] { new UIBarButtonItem(OnButton) }; } void OnButton(object sender,...