예제 #1
0
        public TemperatureStatistics GetStats()
        {
            var stats = new TemperatureStatistics();

            foreach (var temperature in Temperatures)
            {
                stats.AddTemperature(temperature.Temperature);
            }
            return(stats);
        }
예제 #2
0
 public bool Match(TemperatureStatistics stats)
 {
     return(Match(stats.Min) || Match(stats.Max));
 }