using System;
using System.Collections;
class Foo{
static void Main()
{
Hashtable table = new Hashtable();
int intKey = 50;
long longKey = 50;
table.Add(intKey, "SomeValue");
table.Add(longKey, "SomeValue");
Console.WriteLine(table.Count);
Console.Read();
}
}
Cosa viene visualizzato a console?
- A. 1
- B. 2
- C. errore a run-time: System.ArgumentException, Item has already been added. Key in dictionary: "50" Key being added: "50"