Clear() public method

public Clear ( ) : void
return void
示例#1
0
        public void RemoveChildren(string selector)
        {
            if (_children == null)
            {
                return;
            }

            if (string.IsNullOrEmpty(selector))
            {
                _children.Clear();
            }
            else
            {
                _children.RemoveAll(selector);
            }
        }
示例#2
0
 void Cleanup()
 {
     this.name = null;
     if (_attributes != null)
     {
         _attributes.Clear();
     }
     if (_children != null)
     {
         _children.Clear();
     }
     this.text = null;
 }