private static void SetParent(ITreeNode node, ITreeNode value) { TreeNode concrete = node as TreeNode; if (concrete == null) return; concrete.parent = value; }