Skip to content

Commit a342915

Browse files
authored
Change Nullability annotation on ISelectionService.PrimarySelection (#81254)
* Change Nullability on ISelectionService.PrimarySelection * Add nullability to ref ISelectionService interface
1 parent d54896e commit a342915

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libraries/System.ComponentModel.TypeConverter/ref/System.ComponentModel.TypeConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1943,7 +1943,7 @@ public partial interface IRootDesigner : System.ComponentModel.Design.IDesigner,
19431943
}
19441944
public partial interface ISelectionService
19451945
{
1946-
object PrimarySelection { get; }
1946+
object? PrimarySelection { get; }
19471947
int SelectionCount { get; }
19481948
event System.EventHandler SelectionChanged;
19491949
event System.EventHandler SelectionChanging;

src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/Design/ISelectionService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public interface ISelectionService
1313
/// <summary>
1414
/// Gets the object that is currently the primary selection.
1515
/// </summary>
16-
object PrimarySelection { get; }
16+
object? PrimarySelection { get; }
1717

1818
/// <summary>
1919
/// Gets the count of selected objects.

0 commit comments

Comments
 (0)