public void Add(TreeInfo treeInfo) { string name = treeInfo.name; if (!Trees.Any(t => t.Name == name)) { Trees.Add(new Tree(treeInfo)); } }