title: Count how many characters
body: <p>I usually never use char so sorry if it seems a noob question. I'm doing a Crypter, and wanted to do "if there's at least 4 differents char, then crypt, else don't crypt and return error"</p>
  
  <p>Actual Code:</p>
  
  <pre><code>string msg = Console.ReadLine();
  char[] msgToChar = msg.ToCharArray();
  if(here is the problem)
  {
  Console.WriteLine("Crypted message: " + Crypt(msg.ToUpper()));
  }
  else
  {
  Console.WriteLine("Please enter at least 4 differentes characters.");
  }
  </code></pre>