Is it possible to convert a string value to a variable name ?
Considering the following example
AddNode(treeview, "root", "This is the root");
public void AddNode(TreeNode parent, string nodeName, string nodeValue)
{
// what i want to happen is here to be created node with the name "root"
// TreeNode root = new TreeNode(nodeValue);
// parent.Nodes.Add(root);
// so is there a way to convert the string value of nodeName to
// somehow get it as a variable name
}