W
Wamiq Ansari
Hi,
I am using a System.Windows.Forms.Label object as key in my Hashtable. One
thing that has surprised me is that if I create two Label objects with same
properties (ie. Name, TabIndex,Text,Size,Dock) and use them as Key in my
Hashtable it doesn't give any error.
I thought, generally, in a Hashtable we cannot use two same objects as keys.
The Label Objects in this case are being created in a loop and used as keys
in a Hashtable.
Can anyone please shed some light on this.
Regards,
Wamiq Ansari
(e-mail address removed)
I am using a System.Windows.Forms.Label object as key in my Hashtable. One
thing that has surprised me is that if I create two Label objects with same
properties (ie. Name, TabIndex,Text,Size,Dock) and use them as Key in my
Hashtable it doesn't give any error.
I thought, generally, in a Hashtable we cannot use two same objects as keys.
The Label Objects in this case are being created in a loop and used as keys
in a Hashtable.
Can anyone please shed some light on this.
Regards,
Wamiq Ansari
(e-mail address removed)