var query = from d in _dataStore where (d.Key >= tempStart) && (d.Key <= tempEnd) select d.Value; var valueQuery = (from sortedDictionary in query let name = n select (from e in sortedDictionary where e.Key == name select e.Value) into query2 select query2.Single<double>() ) .OrderBy(value => value); double total = valueQuery.Any() && valueQuery.First() != -9999 ? valueQuery.Sum() : -9999;
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.