Пример #1
0
        public void SetId(TId node)
        {
            if (_id_ != null)
            {
                _id_.Parent(null);
            }

            if (node != null)
            {
                if (node.Parent() != null)
                {
                    node.Parent().RemoveChild(node);
                }

                node.Parent(this);
            }

            _id_ = node;
        }
Пример #2
0
        public void SetVarname(TId node)
        {
            if (_varname_ != null)
            {
                _varname_.Parent(null);
            }

            if (node != null)
            {
                if (node.Parent() != null)
                {
                    node.Parent().RemoveChild(node);
                }

                node.Parent(this);
            }

            _varname_ = node;
        }