diff --git a/FuncExt/Ext.cs b/FuncExt/Extensions.cs similarity index 64% rename from FuncExt/Ext.cs rename to FuncExt/Extensions.cs index 8f3da65..96bfe17 100644 --- a/FuncExt/Ext.cs +++ b/FuncExt/Extensions.cs @@ -1,6 +1,6 @@ namespace FuncExt; -public static class Pipe { +public static class Extensions { public static TRet Run(this T obj, Func action) => action(obj); @@ -11,4 +11,9 @@ public static class Pipe { action(obj); return obj; } + + public static void Select(this IEnumerable source, Action action) { + foreach (var item in source) + action(item); + } } \ No newline at end of file diff --git a/FuncExt/FuncExt.csproj b/FuncExt/FuncExt.csproj index d1ad21d..791fc72 100644 --- a/FuncExt/FuncExt.csproj +++ b/FuncExt/FuncExt.csproj @@ -7,4 +7,8 @@ true + + + +