N
nzanella
Hello,
I cannot seem to find this in the MSDN documentation: what I would
like to ask is whether the System.Collections.Hashtable.Add should
throw an exception or replace the old value when an element with
the same key value as an existing one is added. For instance, is
the following code legal in C#?
hashtable.Add("aaa", "foo");
hashtable.Add("aaa", "bar");
Thanks,
Good night,
Neil
I cannot seem to find this in the MSDN documentation: what I would
like to ask is whether the System.Collections.Hashtable.Add should
throw an exception or replace the old value when an element with
the same key value as an existing one is added. For instance, is
the following code legal in C#?
hashtable.Add("aaa", "foo");
hashtable.Add("aaa", "bar");
Thanks,
Good night,
Neil