public virtual void AddChildren() { this.Nodes.Clear(); foreach (IPropertyMap propertyMap in this.classMap.GetAllPropertyMaps()) { TreeNode child = new PropertyTreeNode(this.context, this.obj, propertyMap.Name); this.Nodes.Add(child); // if (propertyMap.ReferenceType != ReferenceType.None) // { // } } foreach (MethodInfo methodInfo in obj.GetType().GetMethods()) { bool show = ShowMethod(methodInfo); if (show) { TreeNode child = new MethodTreeNode(this.context, this.obj, methodInfo); this.Nodes.Add(child); } } }
public virtual void AddChildren() { this.Nodes.Clear() ; foreach (IPropertyMap propertyMap in this.classMap.GetAllPropertyMaps() ) { TreeNode child = new PropertyTreeNode(this.context, this.obj, propertyMap.Name); this.Nodes.Add(child); // if (propertyMap.ReferenceType != ReferenceType.None) // { // } } foreach (MethodInfo methodInfo in obj.GetType().GetMethods()) { bool show = ShowMethod(methodInfo); if (show) { TreeNode child = new MethodTreeNode(this.context, this.obj, methodInfo); this.Nodes.Add(child); } } }