コード例 #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     using (Clone clone = new Clone(1))
     {
         //do nothing
     }
 }
コード例 #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            Clone clone2 = new Clone(2);

            clone2 = null;
        }