MongoServices 0.2.0
A Service/Repository Framework for mongoDB
|
00001 using System; 00002 using System.Collections.Generic; 00003 using System.Linq; 00004 using System.Text; 00005 00006 namespace MongoServices 00007 { 00011 internal static class IEnumerableExtensions 00012 { 00013 #region Public Static Methods 00014 00015 00016 00017 00018 00019 00020 public static void ForEach<T>(this IEnumerable<T> objects, Action<T> action) 00021 { 00022 foreach (var obj in objects) 00023 { 00024 action(obj); 00025 } 00026 } 00027 #endregion 00028 } 00029 }