From 2bfe317437cf1a3cfd49c205cadf111a8e4d3630 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=90=D0=BB=D0=B5=D0=B9?= =?UTF-8?q?=D0=BA=D0=B8=D0=BD?= Date: Wed, 18 Oct 2023 18:02:56 +0400 Subject: [PATCH] =?UTF-8?q?=D0=92=D1=80=D0=BE=D0=B4=D0=B5=20=D0=B8=D1=81?= =?UTF-8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=B8=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WinFormsProject/WinFormsLibrary/TreeClass.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WinFormsProject/WinFormsLibrary/TreeClass.cs b/WinFormsProject/WinFormsLibrary/TreeClass.cs index 04d2c23..d660e63 100644 --- a/WinFormsProject/WinFormsLibrary/TreeClass.cs +++ b/WinFormsProject/WinFormsLibrary/TreeClass.cs @@ -99,7 +99,7 @@ namespace WinFormsLibrary public T GetSelectedClass() where T : new() { - T res = new T(); + T res = default(T); TreeNode node = treeView.SelectedNode; if (node.Nodes.Count != 0)