title: c# getting values from dictionary
body: <p>I'm trying to make a basic program that will take a letter a user inputs and output it's Morse code equivalent. My problem is that the program can't seem to locate the key. Any fixes? Please remember I'm trying to keep it as simple as possible.</p>
  
  <pre><code>Dictionary&lt;string, string&gt; values = new Dictionary&lt;string, string&gt;();
  values.Add("A", ".-");
  values.Add("B", "-...");
  values.Add("C", "-.-.");
  // ...
  values.Add("8", "---..");
  values.Add("9", "----.");
  values.Add("0", "-----");
  
  Console.WriteLine("Pleae enter the value you wish to convert"); 
  string translate = Console.ReadLine();
  string translateupper = translate.ToUpper();
  if (values.ContainsKey(translateupper) == true)
  {
      string Converted = (values["translateupper"].ToString());
      Console.WriteLine(Converted);
  }
  </code></pre>