generate functionTue, 07 Feb 2023

create a function to filter the collection by date range

public Func<DateTime, DateTime, IEnumerable<MeasurementData>> FilterByDateRange = (from, to) => { return Measurements.Where(x => x.Timestamp >= from && x.Timestamp <= to); };

Questions about programming?Chat with your personal AI assistant