diff --git a/MvsSln b/MvsSln index 389a2ab..9c39498 160000 --- a/MvsSln +++ b/MvsSln @@ -1 +1 @@ -Subproject commit 389a2ab53f03d793d0a34fe0058881069da9eb3a +Subproject commit 9c3949825db5bc2a8863ab103d87c4a181a1a514 diff --git a/Wizard/Extensions/CollectionExtension.cs b/Wizard/Extensions/CollectionExtension.cs index c20a02b..46efbec 100644 --- a/Wizard/Extensions/CollectionExtension.cs +++ b/Wizard/Extensions/CollectionExtension.cs @@ -22,26 +22,12 @@ * THE SOFTWARE. */ -using System; using System.Collections.Generic; -using net.r_eg.MvsSln.Extensions; namespace net.r_eg.DllExport.Wizard.Extensions { internal static class CollectionExtension { - /// - /// Foreach in Linq manner. - /// - /// - /// - /// The action that should be executed for each item. - public static IEnumerable Each(this IEnumerable items, Action act) - { - items?.ForEach((x, i) => act(x)); - return items; - } - /// /// To combine string items. /// diff --git a/Wizard/UI/Controls/ProjectItemsControl.cs b/Wizard/UI/Controls/ProjectItemsControl.cs index 8b5e558..f479073 100644 --- a/Wizard/UI/Controls/ProjectItemsControl.cs +++ b/Wizard/UI/Controls/ProjectItemsControl.cs @@ -29,6 +29,7 @@ using System.Windows.Forms; using net.r_eg.DllExport.Wizard.Extensions; using net.r_eg.MvsSln.Core; +using net.r_eg.MvsSln.Extensions; namespace net.r_eg.DllExport.Wizard.UI.Controls { @@ -121,7 +122,7 @@ public void Reset(bool disposing) public IEnumerable GetInactiveInstalled(IEnumerable projects) { return projects?.Where(p => p.Installed && Data.All(d => d.DxpIdent != p.DxpIdent)) - .Each(p => p.Config.Install = true); // since we're not using ConfigureProject() + .ForEach(p => p.Config.Install = true); // since we're not using ConfigureProject() } public ProjectItemsControl()