From a34291586e5f82a98f6b5a2e9134cee96f7fc306 Mon Sep 17 00:00:00 2001
From: Lachlan Ennis <2433737+elachlan@users.noreply.github.com>
Date: Mon, 30 Jan 2023 13:23:56 +1000
Subject: [PATCH] Change Nullability annotation on
`ISelectionService.PrimarySelection` (#81254)
* Change Nullability on ISelectionService.PrimarySelection
* Add nullability to ref ISelectionService interface
---
.../ref/System.ComponentModel.TypeConverter.cs | 2 +-
.../src/System/ComponentModel/Design/ISelectionService.cs | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/libraries/System.ComponentModel.TypeConverter/ref/System.ComponentModel.TypeConverter.cs b/src/libraries/System.ComponentModel.TypeConverter/ref/System.ComponentModel.TypeConverter.cs
index af18697..6eb4fe0 100644
--- a/src/libraries/System.ComponentModel.TypeConverter/ref/System.ComponentModel.TypeConverter.cs
+++ b/src/libraries/System.ComponentModel.TypeConverter/ref/System.ComponentModel.TypeConverter.cs
@@ -1943,7 +1943,7 @@ namespace System.ComponentModel.Design
}
public partial interface ISelectionService
{
- object PrimarySelection { get; }
+ object? PrimarySelection { get; }
int SelectionCount { get; }
event System.EventHandler SelectionChanged;
event System.EventHandler SelectionChanging;
diff --git a/src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/Design/ISelectionService.cs b/src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/Design/ISelectionService.cs
index e852de8..f5d8da6 100644
--- a/src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/Design/ISelectionService.cs
+++ b/src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/Design/ISelectionService.cs
@@ -13,7 +13,7 @@ namespace System.ComponentModel.Design
///
/// Gets the object that is currently the primary selection.
///
- object PrimarySelection { get; }
+ object? PrimarySelection { get; }
///
/// Gets the count of selected objects.
--
2.7.4