Advertisement
Albinutte

C# HM

Feb 17th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.47 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3.  
  4. namespace CSharpTester
  5. {
  6.     class MainClass
  7.     {
  8.         public static void Main(string[] args)
  9.         {
  10.             Dictionary<object, object> test = new Dictionary<object, object>();
  11.  
  12.             test.Add(0, 23);
  13.             test.Add(1, "hello");
  14.             test.Add(15, 34.5);
  15.             test.Add("mamma mia!", 42);
  16.  
  17.             Console.Out.WriteLine(test["mamma mia!"].Equals(42));
  18.             Console.Out.WriteLine(test[1].Equals("Hello"));
  19.         }
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement