Skip to content

Commit 661239d

Browse files
authored
Enable nullability in TreeViewHitTestInfo (#4588)
1 parent 45739de commit 661239d

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/System.Windows.Forms/src/PublicAPI.Shipped.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10982,8 +10982,8 @@ System.Windows.Forms.ToolStripControlHost.ToolStripHostedControlAccessibleObject
1098210982
~System.Windows.Forms.TreeViewEventArgs.Node.get -> System.Windows.Forms.TreeNode
1098310983
~System.Windows.Forms.TreeViewEventArgs.TreeViewEventArgs(System.Windows.Forms.TreeNode node) -> void
1098410984
~System.Windows.Forms.TreeViewEventArgs.TreeViewEventArgs(System.Windows.Forms.TreeNode node, System.Windows.Forms.TreeViewAction action) -> void
10985-
~System.Windows.Forms.TreeViewHitTestInfo.Node.get -> System.Windows.Forms.TreeNode
10986-
~System.Windows.Forms.TreeViewHitTestInfo.TreeViewHitTestInfo(System.Windows.Forms.TreeNode hitNode, System.Windows.Forms.TreeViewHitTestLocations hitLocation) -> void
10985+
System.Windows.Forms.TreeViewHitTestInfo.Node.get -> System.Windows.Forms.TreeNode?
10986+
System.Windows.Forms.TreeViewHitTestInfo.TreeViewHitTestInfo(System.Windows.Forms.TreeNode? hitNode, System.Windows.Forms.TreeViewHitTestLocations hitLocation) -> void
1098710987
~System.Windows.Forms.TypeValidationEventArgs.Message.get -> string
1098810988
~System.Windows.Forms.TypeValidationEventArgs.ReturnValue.get -> object
1098910989
~System.Windows.Forms.TypeValidationEventArgs.TypeValidationEventArgs(System.Type validatingType, bool isValidInput, object returnValue, string message) -> void

src/System.Windows.Forms/src/System/Windows/Forms/TreeViewHitTestInfo.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
// See the LICENSE file in the project root for more information.
44

5-
#nullable disable
6-
75
namespace System.Windows.Forms
86
{
97
/// <summary>
@@ -12,12 +10,12 @@ namespace System.Windows.Forms
1210
public class TreeViewHitTestInfo
1311
{
1412
private readonly TreeViewHitTestLocations loc;
15-
private readonly TreeNode node;
13+
private readonly TreeNode? node;
1614

1715
/// <summary>
1816
/// Creates a TreeViewHitTestInfo instance.
1917
/// </summary>
20-
public TreeViewHitTestInfo(TreeNode hitNode, TreeViewHitTestLocations hitLocation)
18+
public TreeViewHitTestInfo(TreeNode? hitNode, TreeViewHitTestLocations hitLocation)
2119
{
2220
node = hitNode;
2321
loc = hitLocation;
@@ -37,7 +35,7 @@ public TreeViewHitTestLocations Location
3735
/// <summary>
3836
/// This gives the node returned by hit test on treeview.
3937
/// </summary>
40-
public TreeNode Node
38+
public TreeNode? Node
4139
{
4240
get
4341
{

0 commit comments

Comments
 (0)