private List <DailySteamUserInfo> InnerQueryInfo(TimeRange year, TimeRange?month, TimeRange?day) { year = new TimeRange(year.StartTime % 100, year.EndTime % 100); return(DailyInfos.Where(k => { CustomDate date = k.CustomDate; bool flag = date.Year >= year.StartTime && date.Year <= year.EndTime; if (!flag) { return false; } if (month != null) { flag = date.Month >= month.Value.StartTime && date.Month <= month.Value.EndTime; } if (!flag) { return false; } if (day != null) { flag = date.Day >= day.Value.StartTime && date.Day <= day.Value.EndTime; } return flag; }).ToList()); }
public List <DailySteamUserInfo> QueryInfo() { return(DailyInfos.ToList()); }