View Code
1 private void OpenExcel() 2 { 3 …… 4 } 5 6 private void StartOpen() 7 { 8 OpenExcel(); 9 } 10 catch(){} 11 finally 12 { 13 GC.Collect(); // 强制回收 14