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

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

public static MakeOtherType ( this parent, bool>.Func condition, TreeNodeType newType ) : TreeNode
parent this
condition bool>.Func
newType TreeNodeType
Результат System.Windows.Forms.TreeNode
        public static TreeNode MakeOtherType(this TreeNode parent, Func<object,bool> condition, TreeNodeType newType)
        {
            foreach (TreeNode node in parent.Nodes)
            {
                TreeNodeTag tag = node.Tag as TreeNodeTag;
                if (tag != null)
                {
                    if (condition(tag.Object))
                        tag.Type = newType;

                }
            }
            return parent;
        }