LINQ: display results from empty lists
- by Douglas H. M.
I've created two entities (simplified) in C#:
class Log {
entries = new List<Entry>();
DateTime Date { get; set; }
IList<Entry> entries { get; set; }
}
class Entry {
DateTime ClockIn { get; set; }
DateTime ClockOut { get; set; }
}
I am using the following code to initialize the objects:
Log log1…