一個定義,因爲從VS2010升級項目,VS2012我得到的錯誤:「系統.__ ComObject」不包含.WithComCleanup()
'System.__ComObject' does not contain a definition for .WithComCleanup())
運行這段代碼的命令行時間:
using (var cell = usedRange.Resource.Find(reservedWord, LookIn: XlFindLookIn.xlFormulas, After: usedRange.Resource.Cells[usedRange.Resource.Rows.Count, usedRange.Resource.Columns.Count]).WithComCleanup())