title: How to find values in dictionary in VB
body: <p>I have this dictionary:</p>
  <pre><code>Dim chardict As Dictionary(Of Char, Integer) = Nothing
  chardict.Add(&quot;A&quot;, 0)
  chardict.Add(&quot;B&quot;, 1)
  </code></pre>
  <p>I want to do the following <code>if</code> statement but I am a bit stuck on the syntax:</p>
  <pre><code>if chardict.containskey(&quot;A&quot;)
      'display the value that corrosponds to the letter &quot;A&quot;
      'in this case display the character 0
      [some code]
  end if
  </code></pre>