From 016fe5fbbef4dc0aff4b75d2239f484cc67a64a5 Mon Sep 17 00:00:00 2001 From: Stephen Toub Date: Wed, 12 Dec 2018 23:29:47 -0500 Subject: [PATCH] Suppress unused warnings for events raised by the VM (dotnet/coreclr#21520) Commit migrated from https://github.com/dotnet/coreclr/commit/8abe4b0e06193001e123ffefab8e092cfbfcc568 --- src/coreclr/src/System.Private.CoreLib/src/System/AppContext.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/coreclr/src/System.Private.CoreLib/src/System/AppContext.cs b/src/coreclr/src/System.Private.CoreLib/src/System/AppContext.cs index d1a3a98..d559e88 100644 --- a/src/coreclr/src/System.Private.CoreLib/src/System/AppContext.cs +++ b/src/coreclr/src/System.Private.CoreLib/src/System/AppContext.cs @@ -78,9 +78,11 @@ namespace System } } +#pragma warning disable CS0067 // events raised by the VM public static event UnhandledExceptionEventHandler UnhandledException; public static event System.EventHandler FirstChanceException; +#pragma warning restore CS0067 public static event System.EventHandler ProcessExit; -- 2.7.4