Dev2.ViewModels.Deploy.DeployNavigationViewModel.Iterate C# (CSharp) Method

Iterate() protected method

perform some kind of action on all children of a node
protected Iterate ( Action action ) : void
action Action
return void
        protected void Iterate(Action<IExplorerItemModel> action)
        {
            if(ExplorerItemModels != null && action != null)
            {
                var explorerItemModels = ExplorerItemModels.ToList();
                explorerItemModels.ForEach(model =>
                {
                    if(model != null)
                    {
                        Iterate(action, model);
                    }
                });
            }
        }

Same methods

DeployNavigationViewModel::Iterate ( Action action, IExplorerItemModel node ) : void