|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Re: Strict type for Hashtable?> I thought that arrays and hash tables could be strictly typed under 2.0 The class you are looking for is Dictionary(Of TKey, TValue). This is a> instead of just being objects, but I can't find any documentation. > > I want to have the values in a hash table designated as a string type, > so that I don't have to keep doing something like: > > strSomething = CStr(hashtable(Key)) > > I'd rather have > strSomething = hashtable(Key) > > Do the hashtables support this? If they do, what is the syntax? better name than 1.x's 'Hashtable', because Dictionary is the _concept_, whereas Hashtable is just one particular _implementation_. You can find an example of its use here: <http://msdn2.microsoft.com/en-us/library/xfhwa508.aspx> -- Larry Lard Replies to group please Thanks for the info guys.
This feature was one of the items that had me chomping at the bit to upgrade to 2.0 Shane
Calling Sub Procedure with a variable
ISO-8859-1 encoding of an xml string Deleting a Photo stored in a Picturebox VB.NET 2002 question from complete and utter newbie to programming Old Basic commands. programatically created checkboxes within panels again.... Lauching a form from another form How to remove an empty array ? DirectCast of object to interface doesn't work Strict type for Hashtable? |
|||||||||||||||||||||||