Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void
コード例 #1
0
        protected static void Settings_Click(object sender, EventArgs e)
        {
            var f = new frmSettings(BS);

            if (f.ShowDialog() == DialogResult.OK)
            {
                storeBS(f.BS);
            }
            f.Dispose();
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: AyrA/BitMailServer
 protected static void Settings_Click(object sender, EventArgs e)
 {
     var f=new frmSettings(BS);
     if (f.ShowDialog() == DialogResult.OK)
     {
         storeBS(f.BS);
     }
     f.Dispose();
 }