Beispiel #1
0
        static void Main(string[] args)
        {
            var hashTable = new HashTable();

            hashTable.AddValue("123");
            Console.WriteLine("hashTable.AddValue(\"123\")");
            Console.WriteLine($"hashTable.Contains(\"123\"): {hashTable.Contains("123")}");
            Console.WriteLine();

            hashTable.DeleteValue("123");
            Console.WriteLine("hashTable.DeleteValue(\"123\")");
            Console.WriteLine($"hashTable.Contains(\"123\"): {hashTable.Contains("123")}");
            Console.WriteLine();

            hashTable.AddValue("123");
            Console.WriteLine("hashTable.AddValue(\"123\")");
            hashTable.Clear();
            Console.WriteLine("hashTable.Clear()");
            Console.WriteLine($"hashTable.Contains(\"123\"): {hashTable.Contains("123")}");
        }