From 70f4cd588a0bc0e91f4457bbabfddf9f91a61964 Mon Sep 17 00:00:00 2001 From: Stephen Toub Date: Wed, 30 Sep 2020 16:25:24 -0400 Subject: [PATCH] Fix nullable annotation on ISite.Container --- .../ref/System.ComponentModel.Primitives.cs | 2 +- .../src/System/ComponentModel/ISite.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libraries/System.ComponentModel.Primitives/ref/System.ComponentModel.Primitives.cs b/src/libraries/System.ComponentModel.Primitives/ref/System.ComponentModel.Primitives.cs index 326179721c1989..c02213d8371654 100644 --- a/src/libraries/System.ComponentModel.Primitives/ref/System.ComponentModel.Primitives.cs +++ b/src/libraries/System.ComponentModel.Primitives/ref/System.ComponentModel.Primitives.cs @@ -231,7 +231,7 @@ public InvalidEnumArgumentException(string? argumentName, int invalidValue, Syst public partial interface ISite : System.IServiceProvider { System.ComponentModel.IComponent Component { get; } - System.ComponentModel.IContainer Container { get; } + System.ComponentModel.IContainer? Container { get; } bool DesignMode { get; } string? Name { get; set; } } diff --git a/src/libraries/System.ComponentModel.Primitives/src/System/ComponentModel/ISite.cs b/src/libraries/System.ComponentModel.Primitives/src/System/ComponentModel/ISite.cs index 3a6f9c244e1c0e..e51287ff1f8675 100644 --- a/src/libraries/System.ComponentModel.Primitives/src/System/ComponentModel/ISite.cs +++ b/src/libraries/System.ComponentModel.Primitives/src/System/ComponentModel/ISite.cs @@ -26,7 +26,7 @@ public interface ISite : IServiceProvider /// When implemented by a class, gets the container associated with /// the . /// - IContainer Container { get; } + IContainer? Container { get; } /// /// When implemented by a class, determines whether the component is in design mode.