title: How to create a HashMap in C#
body: <p>I know we can create a <a href="https://docs.oracle.com/javase/8/docs/api/java/util/HashMap.html" rel="nofollow noreferrer">HashMap</a> in Java. But I want to create a HashMap in C# for my ASP.NET MVC project.</p>
  
  <p>Is this possible to do? If yes, how?</p>
  
  <p>In Java we can create a HashMap like this:</p>
  
  <pre><code>import java.util.HashMap;
  //...
  HashMap&lt;Name, Value&gt; myDictionary = new HashMap&lt;&gt;();
  </code></pre>