public NodeInfo (NodeInfo parent, MemberInfo mi, object instance) : this (parent, NodeTypes.Other, mi, instance, null) { // set type switch (mi.MemberType) { case MemberTypes.NestedType: case MemberTypes.TypeInfo: this.type = NodeTypes.Type; break; case MemberTypes.Constructor: this.type = NodeTypes.Constructor; break; case MemberTypes.Event: this.type = NodeTypes.Event; break; case MemberTypes.Field: this.type = NodeTypes.Field; break; case MemberTypes.Method: this.type = NodeTypes.Method; break; case MemberTypes.Property: this.type = NodeTypes.Property; break; default: this.type = NodeTypes.Other; break; } }
public NodeInfo (NodeInfo parent, NodeTypes type, object reflectionObject, object reflectionInstance, object description) { this.parent = parent; this.type = type; this.reflectionObject = reflectionObject; this.reflectionInstance = reflectionInstance; this.description = description; }
public NodeInfo (NodeInfo parent, MemberInfo mi) : this (parent, mi, null) { }
public NodeInfo (NodeInfo parent, object description) : this (parent, NodeTypes.Other, null, null, description) { }
public NodeInfo (NodeInfo parent, NodeTypes type) : this (parent, type, null, null, null) { }
public NodeInfo (NodeInfo parent, NodeTypes type, object reflectionObject, object reflectionInstance) : this (parent, type, reflectionObject, reflectionInstance, null) { }
public int Add (NodeInfo value) { return InnerList.Add (value); }
public void AddRange (NodeInfo[] values) { foreach (NodeInfo n in values) Add (n); }
public NodeInfo(NodeInfo parent, MemberInfo mi) : this(parent, mi, null) { }
public NodeInfo(NodeInfo parent, object description) : this(parent, NodeTypes.Other, null, null, description) { }
public NodeInfo(NodeInfo parent, NodeTypes type) : this(parent, type, null, null, null) { }
public NodeInfo(NodeInfo parent, NodeTypes type, object reflectionObject, object reflectionInstance) : this(parent, type, reflectionObject, reflectionInstance, null) { }
public int Add(NodeInfo value) { return(InnerList.Add(value)); }