title: Convert Char Array to String in C#
body: <p>I am new to programming, particularly in C#, and I thought I'd start with something simple like a text reverser. I thought I'd take it a little further and also make it a Palindrome checker. The problem is I can't seem to convert the array back into a string to check it to the original input.</p>
  <pre><code>string Inp = &quot;1&quot;;  // user input
  
  Console.WriteLine(&quot;Input a word to reverse&quot;); // user inputs word
  Inp = Convert.ToString(Console.ReadLine()); // input gets converted to string
  
  char[] charArray = Inp.ToCharArray(); // converts char to array
  Array.Reverse(charArray); // reverses array
  
  if (Inp == charArray) { // compares user input to the array - does not work
      Console.WriteLine(Inp + &quot; is a Palindrome&quot;); // writes the input with text afterwards
  } else {
      Console.WriteLine(Inp + &quot; is not a palindrome&quot;);
  }
  </code></pre>
  <p>I have tried things like <code>Convert.ToString</code> and other versions of that but it didn't seem to work. I tried creating <code>new string = (charArray)</code> to create a new string bur that didn't work either.
  Thank you.</p>
  <p>EDIT: It gives me this error:</p>
  <blockquote>
  <p>Operator '==' cannot be applied to operands of type 'string' and 'char[]'</p>
  </blockquote>
  <p>Also, a little unrelated, but are there too many annotations? Should I do less?
  And did I ask the question correctly or is there something I did wrong and missed out?</p>