Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- namespace CSharpTester
- {
- class MainClass
- {
- public static void Main(string[] args)
- {
- Dictionary<object, object> test = new Dictionary<object, object>();
- test.Add(0, 23);
- test.Add(1, "hello");
- test.Add(15, 34.5);
- test.Add("mamma mia!", 42);
- Console.Out.WriteLine(test["mamma mia!"].Equals(42));
- Console.Out.WriteLine(test[1].Equals("Hello"));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement