Вроде исправил

This commit is contained in:
Артём Алейкин 2023-10-18 18:02:56 +04:00
parent c90b181d85
commit 2bfe317437

View File

@ -99,7 +99,7 @@ namespace WinFormsLibrary
public T GetSelectedClass<T>() where T : new() public T GetSelectedClass<T>() where T : new()
{ {
T res = new T(); T res = default(T);
TreeNode node = treeView.SelectedNode; TreeNode node = treeView.SelectedNode;
if (node.Nodes.Count != 0) if (node.Nodes.Count != 0)