Extension Properties
<p>HI,
I Am creating one user Control in windows Application which contain Treeview With n Nodes <br>
The NUmbe OF Nodes Will be decided At Runtime. <br>
I Want To Store Some Data On Each TreeNode Which I Can Retrieve When TreeNode Get Selected. <br>
Problem is that some node will store custid,custname.. <br>
some store studid,studname,,,,,,</p>

<p>I Have used Extension Methods <br>
static class Extension <br>
    { <br>
        static Dictionary m_Dictionary=new Dictionary(); <br>
        public static void SetTags(this TreeNode p_TreeNode, Dictionary  p_Dictionary)<br>
        { <br>
            m_Dictionary = p_Dictionary; <br>
        } <br>
        public static Dictionary GetTags(this TreeNode p_TreeNode) <br>
        { <br>
            return m_Dictionary; <br>
        } <br>
    } <br>
but it will not help becase iam getting data on the last node only... <br>
how i can achieve this .. <br>
is there is something like etension properties....or whether there is any other solution. <br>
Thank In Advance,,,,,,, <br></p>
