c# replace foreach with lambda

C#
r.ToList().ForEach(item => datasetUserAppsUsage.Merge(item.AppsUsageSummary);
Source

Also in C#: