title: C# Value reset between Form and DLL
body: <p>I have a program which uses two classes in a DLL and a Form for display results.</p>
  <p>My first class:</p>
  <pre><code>public class Channels
  {
   public int Wavelength = 0;
  }
  </code></pre>
  <p>The second:</p>
  <pre><code>public class SayMyName
  {
   public Channels CH1 = new Channels();
   public void Wave(string longu)
   {
    CH1.Wavelength = 01064; //breakpoint here, all is good
   }
  }
  </code></pre>
  <p>And my Form:</p>
  <pre><code>public SayMyName pub = new SayMyName();
  private void button3_Click(object sender, EventArgs e)
  {
   string longu = textBox3.Text;
   pub.Wave(longu); //breakpoint here, my value in CH1.Wavelength is reset?!
   textBox2.Text = CH1.Wavelength.ToString();
  }
  </code></pre>
  <p>This program display 0 in my textbox.</p>
  <p>I put a breakpoint in my class <code>SayMyName</code> and <code>CH1.Wavelength</code>= 1064.
  I put an other breakpoint in my Form and there <code>CH1.Wavelength</code>=0.</p>
  <p>How can I keep the value in <code>CH1.Wavelength</code>?</p>