can someone please help me turn this nested structure into a single LINQ statement?
EventLog[] logs = EventLog.GetEventLogs(); for (int i = 0; i
Try the following:
from log in logs where log.LogDisplayName.Equals("AAA") select (from entry in log.Entries where entry.Source.Equals("BBB") select entry);