A
Anony
Hi All,
I used the Hashtable.Item in VB.Net, i.e.
Dim Tables As New Hashtable
Tables.Item(ID) = objTable
Now, I tried the same in C#, and got an error says the Hashtable has no Item
property.
Hashtable Tables = new Hashtable();
Tables.Item(ID) = objTable;
Did I miss something or I have to use Tables.Add(ID, objTable); in C#?
Thanks for any tips,
Anony
I used the Hashtable.Item in VB.Net, i.e.
Dim Tables As New Hashtable
Tables.Item(ID) = objTable
Now, I tried the same in C#, and got an error says the Hashtable has no Item
property.
Hashtable Tables = new Hashtable();
Tables.Item(ID) = objTable;
Did I miss something or I have to use Tables.Add(ID, objTable); in C#?
Thanks for any tips,
Anony