title: I don't understand string in c#
body: <p>As someone who's only ever used c++, i'm so confused. I've gone over different explanations but i still can't seem to understand it. Why do i, for example, need to check if a string is a string? (the tryparse method) If it's a number obviously its an int...right?? So for example my current code takes in age in one function and outputs it in the main function. I tried converting it to int but i got error cs0019: Operator '==' cannot be applied to operands of 'int' and 'string'</p>
  
  <pre><code>public static string GetAge()
  {
    Console.WriteLine("\nPlease input age &gt; ");
  
  int age = Int32.Parse(Console.ReadLine());
    if (age == "") 
    {
      do {
        Console.Write("Invalid input. Please try again &gt; ");
        age = Console.ReadLine();
         } while ( age == "");
    }
    return age;
  
  }
  
  static void Main (){
  
  Console.WriteLine("\nPlease note\nThis program is only applicable for users born between 1999 and 2010");
  
  string name = GetName();
  string year = GetYear();
  int age = GetAge();
  </code></pre>
  
  <p>And then i also get this error cs0029:Cannot implicitly convert type 'int' to 'string' (line 49 which is return age) and error cs0029: cannot implicitly convert type 'string' to 'int' for line 58 (int age =GetAge();)</p>