From 99e527bc0a36bfc8c4ee8b62cd6e0a7bf7572848 Mon Sep 17 00:00:00 2001 From: Staffan Gustafsson Date: Thu, 3 Dec 2020 18:19:24 +0100 Subject: [PATCH] Enable nullable: System.Management.Automation.Host.IHostSupportsInteractiveSession (#14170) --- src/System.Management.Automation/engine/hostifaces/MshHost.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/System.Management.Automation/engine/hostifaces/MshHost.cs b/src/System.Management.Automation/engine/hostifaces/MshHost.cs index 64d8f1170..7ee89d14b 100644 --- a/src/System.Management.Automation/engine/hostifaces/MshHost.cs +++ b/src/System.Management.Automation/engine/hostifaces/MshHost.cs @@ -290,6 +290,7 @@ namespace System.Management.Automation.Host /// This interface needs to be implemented by PSHost objects that want to support the PushRunspace /// and PopRunspace functionality. /// +#nullable enable public interface IHostSupportsInteractiveSession { /// @@ -317,6 +318,6 @@ namespace System.Management.Automation.Host /// Returns the current runspace associated with this host. /// [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Runspace")] - Runspace Runspace { get; } + Runspace? Runspace { get; } } }