protected override void CreateChildren() { base.TreeNode.Nodes.Clear(); if (OkayToCreateChildren()) { Type type1 = Type.GetElementType(); int num1 = Length; for (int num2 = 0; num2 < num1; num2++) { object obj1 = ArrayValue.GetValue(num2); if ((obj1 == null) && IsInput()) { obj1 = CreateNewInstance(type1); } CreateTreeNodeProperty(base.GetIncludedTypes(type1), base.Name + "_" + num2.ToString(), obj1). RecreateSubtree(base.TreeNode); } } }
protected override void CreateChildren() { base.TreeNode.Nodes.Clear(); if (OkayToCreateChildren()) { Type elementType = Type.GetElementType(); int length = Length; for (int i = 0; i < length; i++) { object val = ArrayValue.GetValue(i); if ((val == null) && IsInput()) { val = CreateNewInstance(elementType); } CreateTreeNodeProperty(base.GetIncludedTypes(elementType), base.Name + "_" + i, val) .RecreateSubtree(base.TreeNode); } } }