Fixed release confgurations
[pithos-ms-client] / trunk / Pithos.Core / EnumerableExtensions.cs
index 19e71c3..2303d0d 100644 (file)
@@ -43,6 +43,7 @@ using System;
 using System.Collections.Generic;
 using System.Diagnostics.Contracts;
 using System.Linq;
+using System.Linq.Expressions;
 using System.Text;
 
 namespace Pithos.Core
@@ -66,6 +67,17 @@ namespace Pithos.Core
                 yield return array[i];
         }
 
+        public static void ApplyAction<T>(this IEnumerable<T> list,Action<T> action)
+        {
+            if (list == null)
+                return;
+
+            foreach (var item in list)
+            {
+                action(item);
+            }
+        }
+
       
     }
 }