AddChild() public method

public AddChild ( FileSystemNode node ) : void
node FileSystemNode
return void
Esempio n. 1
0
 protected FileSystemNode(FolderNode parent, string name)
 {
     Parent = parent;
     Name = name;
     if (Parent != null)
     {
         Parent.AddChild(this);
     }
     TouchLastWriteTime();
     TouchLastAccessTime();
     TouchCreationTime();
 }
Esempio n. 2
0
 internal void Move(FileSystemNode source, FolderNode destParentNode, string destName)
 {
     Children.Remove(source);
     source.Name = destName;
     destParentNode.AddChild(source);
 }