Skip to content

Commit

Permalink
Enable nullability in TreeViewHitTestInfo (#4588)
Browse files Browse the repository at this point in the history
  • Loading branch information
gpetrou authored Feb 22, 2021
1 parent 45739de commit 661239d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/System.Windows.Forms/src/PublicAPI.Shipped.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10982,8 +10982,8 @@ System.Windows.Forms.ToolStripControlHost.ToolStripHostedControlAccessibleObject
~System.Windows.Forms.TreeViewEventArgs.Node.get -> System.Windows.Forms.TreeNode
~System.Windows.Forms.TreeViewEventArgs.TreeViewEventArgs(System.Windows.Forms.TreeNode node) -> void
~System.Windows.Forms.TreeViewEventArgs.TreeViewEventArgs(System.Windows.Forms.TreeNode node, System.Windows.Forms.TreeViewAction action) -> void
~System.Windows.Forms.TreeViewHitTestInfo.Node.get -> System.Windows.Forms.TreeNode
~System.Windows.Forms.TreeViewHitTestInfo.TreeViewHitTestInfo(System.Windows.Forms.TreeNode hitNode, System.Windows.Forms.TreeViewHitTestLocations hitLocation) -> void
System.Windows.Forms.TreeViewHitTestInfo.Node.get -> System.Windows.Forms.TreeNode?
System.Windows.Forms.TreeViewHitTestInfo.TreeViewHitTestInfo(System.Windows.Forms.TreeNode? hitNode, System.Windows.Forms.TreeViewHitTestLocations hitLocation) -> void
~System.Windows.Forms.TypeValidationEventArgs.Message.get -> string
~System.Windows.Forms.TypeValidationEventArgs.ReturnValue.get -> object
~System.Windows.Forms.TypeValidationEventArgs.TypeValidationEventArgs(System.Type validatingType, bool isValidInput, object returnValue, string message) -> void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#nullable disable

namespace System.Windows.Forms
{
/// <summary>
Expand All @@ -12,12 +10,12 @@ namespace System.Windows.Forms
public class TreeViewHitTestInfo
{
private readonly TreeViewHitTestLocations loc;
private readonly TreeNode node;
private readonly TreeNode? node;

/// <summary>
/// Creates a TreeViewHitTestInfo instance.
/// </summary>
public TreeViewHitTestInfo(TreeNode hitNode, TreeViewHitTestLocations hitLocation)
public TreeViewHitTestInfo(TreeNode? hitNode, TreeViewHitTestLocations hitLocation)
{
node = hitNode;
loc = hitLocation;
Expand All @@ -37,7 +35,7 @@ public TreeViewHitTestLocations Location
/// <summary>
/// This gives the node returned by hit test on treeview.
/// </summary>
public TreeNode Node
public TreeNode? Node
{
get
{
Expand Down

0 comments on commit 661239d

Please sign in to comment.