예제 #1
0
        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();
        }
예제 #2
0
 private void ProcessSingleInstance(TornadoData curr)
 {
     curr.fipsCodes = curr.GetFipsCodes().ToList();
     curr.UpdateData();
     _result.Add(curr);
 }