Clear() public method

public Clear ( ) : void
return void
コード例 #1
0
ファイル: XML.cs プロジェクト: xybyte/FairyGUI-unity
        public void RemoveChildren(string selector)
        {
            if (_children == null)
            {
                return;
            }

            if (string.IsNullOrEmpty(selector))
            {
                _children.Clear();
            }
            else
            {
                _children.RemoveAll(selector);
            }
        }
コード例 #2
0
ファイル: XML.cs プロジェクト: wangjie0707/Temp_01
 void Cleanup()
 {
     this.name = null;
     if (_attributes != null)
     {
         _attributes.Clear();
     }
     if (_children != null)
     {
         _children.Clear();
     }
     this.text = null;
 }