Vipul Kelkar

Vipul Kelkar

  • NA
  • 30
  • 0

Adding child to parent

Mar 16 2009 4:07 AM

Hi guys...

I have created a root node in a function and i want to pass it to another fuction

void CreateRoot()

{

      //created a root node named 'root' here and passed it to a function named CreateChild(root);

}

void CreateChild(TreeNode root)

{

//here i need to create a child node to root...m not able to do it

// not able to add       root.Nodes.Add(//child);

//not able to see root.'Nodes' here

 

}

 

Please help me..its urgent


Answers (1)