title: Disposing Controls on Winforms
body: <p>Why does Visual Studio add this code to the Class.Designer.cs partial class. 
  Can anyone tell me when this components variable is going to get some value? What's the pattern to follow here? </p>
  
  <pre><code>private System.ComponentModel.IContainer components = null;
  
          /// &lt;summary&gt;
          /// Clean up any resources being used.
          /// &lt;/summary&gt;
          /// &lt;param name="disposing"&gt;true if managed resources should be disposed; otherwise, false.&lt;/param&gt;
          protected override void Dispose(bool disposing)
          {
              if(disposing &amp;&amp; (components != null))
              {
                  components.Dispose();
              }
              base.Dispose(disposing);
          }
  </code></pre>