From 1ce868ded34cb5dcd87caae8c7df591339cbd4e5 Mon Sep 17 00:00:00 2001 From: Staffan Gustafsson Date: Fri, 20 Nov 2020 01:05:31 +0100 Subject: [PATCH 1/3] Enable nullable: System.Management.Automation.ICommandRuntime2 --- src/System.Management.Automation/engine/ICommandRuntime.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/System.Management.Automation/engine/ICommandRuntime.cs b/src/System.Management.Automation/engine/ICommandRuntime.cs index cf5de2b20ab..4f1d5d63fec 100644 --- a/src/System.Management.Automation/engine/ICommandRuntime.cs +++ b/src/System.Management.Automation/engine/ICommandRuntime.cs @@ -555,6 +555,8 @@ public interface ICommandRuntime } +#nullable enable + /// /// This interface defines the set of functionality that must be implemented to directly /// execute an instance of a Cmdlet. ICommandRuntime2 extends the ICommandRuntime interface @@ -614,6 +616,6 @@ public interface ICommandRuntime2 : ICommandRuntime /// performed, and the Cmdlet should move on to the next target resource. /// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1045:DoNotPassTypesByReference")] - bool ShouldContinue(string query, string caption, bool hasSecurityImpact, ref bool yesToAll, ref bool noToAll); + bool ShouldContinue(string? query, string? caption, bool hasSecurityImpact, ref bool yesToAll, ref bool noToAll); } } From 4e54b5ed63bce280e7a0d29d4fe5efd8c5166b80 Mon Sep 17 00:00:00 2001 From: Staffan Gustafsson Date: Fri, 20 Nov 2020 18:53:07 +0100 Subject: [PATCH 2/3] Removing whitespace before/after nullable pragma --- src/System.Management.Automation/engine/ICommandRuntime.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/System.Management.Automation/engine/ICommandRuntime.cs b/src/System.Management.Automation/engine/ICommandRuntime.cs index 4f1d5d63fec..07fbafee151 100644 --- a/src/System.Management.Automation/engine/ICommandRuntime.cs +++ b/src/System.Management.Automation/engine/ICommandRuntime.cs @@ -556,7 +556,6 @@ public interface ICommandRuntime } #nullable enable - /// /// This interface defines the set of functionality that must be implemented to directly /// execute an instance of a Cmdlet. ICommandRuntime2 extends the ICommandRuntime interface From 2e60a6f977e077e8b6b4c971e2f35b2adc01c341 Mon Sep 17 00:00:00 2001 From: Staffan Gustafsson Date: Fri, 20 Nov 2020 19:35:46 +0100 Subject: [PATCH 3/3] Removing whitespace before/after nullable pragma --- src/System.Management.Automation/engine/ICommandRuntime.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/System.Management.Automation/engine/ICommandRuntime.cs b/src/System.Management.Automation/engine/ICommandRuntime.cs index 07fbafee151..6f0b3ce9d57 100644 --- a/src/System.Management.Automation/engine/ICommandRuntime.cs +++ b/src/System.Management.Automation/engine/ICommandRuntime.cs @@ -555,12 +555,12 @@ public interface ICommandRuntime } -#nullable enable /// /// This interface defines the set of functionality that must be implemented to directly /// execute an instance of a Cmdlet. ICommandRuntime2 extends the ICommandRuntime interface /// by adding support for the informational data stream. /// +#nullable enable public interface ICommandRuntime2 : ICommandRuntime { ///