public MyNode CreateNode(Type nodeType) { MyNode newNode = Activator.CreateInstance(nodeType) as MyNode; newNode.Owner = this; newNode.Init(); return(newNode); }