public void Add(string s)
{
BinaryTree t = new BinaryTree();
this = t;
t.Parent = this;
t.value = s;
}
...
BinaryTree t = new BinaryTree();
this = t;
t.Parent = this;
....
this = t;
разве так можно делать? Разве стандартная семантика Add не вроде:
public BinaryTree Add(string s)
{
BinaryTree t = new BinaryTree();
t.Parent = this;
t.value = s;
return t;
}
?