Hi there,
Please see the below code to understand my problem:
Dim ht As Hashtable = New Hashtable
With ht
For indx As Short = 3 To 6
.Add(indx, 3.1113213132)
Next
End With
Now when I try to retrieve the value for a particular key (say for example: ht(5)), I get the value as "Nothing" but on the other hand if I change the datatype of the variable indx to Int32, it works absolutely fine.
So my question is whether or not the hashtable support a key of type Short (Int16 in .NET Framework)?
Regards,
Aads
Please see the below code to understand my problem:
Dim ht As Hashtable = New Hashtable
With ht
For indx As Short = 3 To 6
.Add(indx, 3.1113213132)
Next
End With
Now when I try to retrieve the value for a particular key (say for example: ht(5)), I get the value as "Nothing" but on the other hand if I change the datatype of the variable indx to Int32, it works absolutely fine.
So my question is whether or not the hashtable support a key of type Short (Int16 in .NET Framework)?
Regards,
Aads
Comment