Exemple #1
0
 private void clone1_Click(object sender, EventArgs e)
 {
     using (Clone clone1 = new Clone(1))
     {
         // Do nothing!
     }
 }
Exemple #2
0
        private void clone2_Click(object sender, EventArgs e)
        {
            Clone clone2 = new Clone(2);

            clone2 = null;
        }
Exemple #3
0
 private void clone2_Click(object sender, EventArgs e)
 {
     Clone clone2 = new Clone(2);
     clone2 = null;
 }