在下面的代码中,我必须传递两个或更多的搜索字符串....我有超过50000个字符串来检查excel中是否存在这些字符串。如果我使用foreach进行比较,则需要更多时间进行比较..
Application oXL = new Microsoft.Office.Interop.Excel.Application();
Workbook oWB;
Worksheet oSheet;
object missing = System.Reflection.Missing.Value;
oWB = oXL.Workbooks.Open("Test", missing, missing, missing, missing,
missing, missing, missing, missing, missing, missing,
missing, missing, missing, missing);
在上面的代码中,我将“Test”作为搜索字符串传递...我可以传递多个字符串而不是单个字符串