title: how to use dictionary two way in c#
body: <pre><code>public static Dictionary&lt;int, string&gt; dic = new Dictionary&lt;int, string&gt;() { 
              {1,"anystring1"},
              {2,"anystring2"}};
  </code></pre>
  
  <p>I need to use this</p>
  
  <pre><code>string str= dic[1]; // it is possible
  
  int a=dic["anystring1"]; // My dream is it
  </code></pre>