title: C# - Pass a struct to a form by reference and return value?
body: <p>I have a struct:</p>
  
  <pre><code>struct Order
  {
        public string orderNumber;
        public string orderDetail;
  }
  </code></pre>
  
  <p>I then assign some values in Form1 and try to pass them by reference (ref) to Form2:</p>
  
  <pre><code>(Form1)
  Order order = new Order();
  order.orderNumber = "1234";
  order.orderDetail = "Widgets";
  Form2 frm2 = new Form2(ref order);
  </code></pre>
  
  <p>Is it possible to store the values in Form2 so that when Form2 is completed processing the values it will return the updated struct values to Form1?</p>
  
  <p>In this scenario there would be a button that would close the form after validating the data.</p>