public List<Call> CellIDduplication(string[] filePaths) { TableExtractor tblExt = new TableExtractor(); CallTable = new List<Call>(); foreach (string filePath in filePaths) { CallTable.AddRange(tblExt.Extract(filePath)); } Call duplicatedCall; foreach (Call e in CallTable.Where(x => x.CellIDOwner.Equals(x.CellIDInterlocutor)).ToList()) { duplicatedCall = new Call(e.IMEI, e.Interlocutor, e.Owner, e.Interlocutor, e.Owner); CallTable.Add(duplicatedCall); } return CallTable; }
static void Main(string[] args) { TableExtractor tbl = new TableExtractor(); tbl.Extract(""); Console.ReadLine(); }