title: C# Error variable is unassigned in try-catch method?
body: <pre><code>static void Main(string[] args)
  {
      int lengthCountdown;
      print tell = new print();
      timer counter = new timer();
      Error invalidInput = new Error();
      tell.tell("Hi i am John");
      tell.tell("How long should the countdown last?");
      try
      {
          lengthCountdown = int.Parse(Console.ReadLine());
      }
      catch(FormatException)
      {
          invalidInput.valueError();
      }
      counter.timing(lengthCountdown);
      tell.tell("That was a " + lengthCountdown + " second countdown");
  }
  </code></pre>
  
  <p>It says that there is an Error at "lengthCountdown" in counter.timing. Error: 
  "Use of unassigned local variable"... If I am not using the try-catch method it isn't showing the Error.</p>