AsmResolver.TreeBuilder.AddForEachNode C# (CSharp) Метод

AddForEachNode() публичный статический Метод

public static AddForEachNode ( this parent, object>.Func valuesToAdd, string>.Func toStringFunc, TreeNodeType type ) : TreeNode
parent this
valuesToAdd object>.Func
toStringFunc string>.Func
type TreeNodeType
Результат System.Windows.Forms.TreeNode
        public static TreeNode AddForEachNode(this TreeNode parent, Func<TreeNodeTag, object> valuesToAdd, Func<object, string> toStringFunc, TreeNodeType type)
        {
            foreach (TreeNode node in parent.Nodes)
            {
                object rawValue = valuesToAdd((TreeNodeTag)node.Tag);
                if (rawValue == null)
                    continue;
                if (rawValue is Array)
                    node.AddSubNodes((object[])rawValue, toStringFunc).MakeOtherType((o) => { return true; } , type);
                else
                    node.AddSubNodes(new object[] { rawValue }, toStringFunc).MakeOtherType((o) => { return true; }, type);

            }
            return parent;
        }

Same methods

TreeBuilder::AddForEachNode ( this parent, object>.Func valuesToAdd ) : TreeNode
TreeBuilder::AddForEachNode ( this parent, object>.Func valuesToAdd, string>.Func toStringFunc ) : TreeNode