fork(38) download
  1. using System;
  2. using System.Collections.Generic;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. Dictionary<string, string> myDict = new Dictionary<string, string>();
  9. myDict.Add("A", "value1");
  10. myDict.Add("a", "value2");
  11. foreach (var kvp in myDict)
  12. {
  13. Console.WriteLine(kvp.Key + ": " + kvp.Value);
  14. }
  15. }
  16. }
Success #stdin #stdout 0.03s 33872KB
stdin
Standard input is empty
stdout
A: value1
a: value2