我有以下代码片段
string[] lines = objects.Split(new string[] { "\r\n", "\n" }, StringSplitOptions.None);
//convert the array into a list for easier comparison
List<string> StringtoList = lines.OfType<string>().ToList();
//get the database list here
List<string> sensitiveApps = testConnection.SelectSensitive();
//compare the 2 lists to get the difference
List<string> except = sensitiveApps.Except(StringtoList,StringComparer.OrdinalIgnoreCase);
但是,我不断收到上述错误,有人能指出我正确的方向吗?