public static TheWeather GetAverageForMonth(Listentries, int year, int month)
{
TheWeather GetItem = entries.First();
return GetItem;
}
from this method i would like to find the Avergage for EX year 2018, month = 5 which they are already saved in the List and the The Class TheWeather has the Properties :
public class TheWeather
{
public DateTime dateTime { get; set; }
public double Actual_mean_temp { get; set; }
public double Record_min_temp { get; set; }
public double Record_max_temp { get; set; }
public double Actual_precipitation { get; set; }
}
without using the LINQ i would like to find the Average please .
Nilesh SawardekarPosted May 3, 2019, 10:54 AM
Abdalla OmranPosted May 3, 2019, 10:26 AM
Nilesh SawardekarPosted May 3, 2019, 10:08 AM