Hi All,
Be careful when indexing Hashtable elements by number. The following
code will create two quite distinct entries in an Hashtable:
myHashtable.Add((int)666, "Foo");
myHashtable.Add((long)666, "Foo");
Always ensure all indexing is done by the objects of the same type -
it's probably safest to explicitly cast them.
Yours,
Duncan Bayne
--
+-----------------------------------------------------------------+
| Duncan Bayne phone (+64) 027 2536395 email dh*****@ihug.co.nz |
| ============ icq# 115621676 msn dh*****@hotmail.com |
| |
| web http://homepages.ihug.co.nz/~dhbayne/ |
| http://groups.yahoo.com/group/akl_airsoft/ |
| http://groups.yahoo.com/group/wakeup_nz/ |
+-----------------------------------------------------------------+
| "The ultimate result of shielding men from the effects of folly |
| is to fill the world with fools." |
| |
| - Herbert Spencer. |
+-----------------------------------------------------------------+