title: How to check if a returned method in C# is an integer
body: <p>I would like to loop a method as long as the method does not return an integer in C#.</p>
  
  <pre><code>     public static int isAnInt()
      {
          rQuit = Console.ReadLine();
          if (Int32.TryParse(rQuit, out isQuit) == false)
          {
  
              Console.WriteLine("Enter value again but as a number");
          }
          return isQuit;
      }
  </code></pre>
  
  <p>// Whilst inside the main method /</p>
  
  <pre><code> while (int.TryParse(isAnInt() , out isQuit ) == false)
          {
              Console.WriteLine("This method is not an int try insert an int"); // For the method isAntInt I am trying to only
              //loop the method as 
              // long as it is not an integer.
          }
  </code></pre>