private static void GetCounties(TornadoData curr, IEnumerable <TornadoData> instance) { curr.fipsCodes = curr.GetFipsCodes().ToList(); var next = instance.Where(n => n.sg == -9 && n.st == curr.st).ToList(); foreach (var data in next) { curr.fipsCodes.AddRange(data.GetFipsCodes()); } curr.UpdateData(); }
private void ProcessSingleInstance(TornadoData curr) { curr.fipsCodes = curr.GetFipsCodes().ToList(); curr.UpdateData(); _result.Add(curr); }