title: Variable not being seen in C# code
body: <p>Learning C# and hit a snag.</p>
  
  <p>Why isn't the variable 'number' used here?</p>
  
  <pre><code>    public partial class Form1 : Form
      {
  
      static string labelText = "";
      static string number = "";
  
      public Form1()                                  
      {
          InitializeComponent();
      }
  
      private void serialNumber_TextChanged(object sender, EventArgs e)
      {
          string number = this.serialNumber.Text;
      }
  </code></pre>
  
  <p>I keep getting a warning that field 'number' is assigned but not used.</p>