From 7b71ac16d4f32d8505b30124a3ec20e84fe730c9 Mon Sep 17 00:00:00 2001 From: Yaakov Date: Sun, 20 Oct 2019 14:23:22 +1100 Subject: [PATCH] Suppress warning about disposable fields that follow Form events lifecycle --- Resources/NetHookAnalyzer2/NetHookAnalyzer2/MainForm.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Resources/NetHookAnalyzer2/NetHookAnalyzer2/MainForm.cs b/Resources/NetHookAnalyzer2/NetHookAnalyzer2/MainForm.cs index f7c69e259..2dcd080a3 100644 --- a/Resources/NetHookAnalyzer2/NetHookAnalyzer2/MainForm.cs +++ b/Resources/NetHookAnalyzer2/NetHookAnalyzer2/MainForm.cs @@ -23,8 +23,13 @@ public MainForm() specializations = LoadMessageObjectSpecializations(); } +#pragma warning disable IDE0069 // Disposable fields should be disposed + IDisposable itemsListViewFirstColumnHiderDisposable; FileSystemWatcher folderWatcher; + +#pragma warning restore IDE0069 // Disposable fields should be disposed + readonly ISpecialization[] specializations; static ISpecialization[] LoadMessageObjectSpecializations()