Exemplo n.º 1
0
		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;
			}
		}
Exemplo n.º 2
0
		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;
		}
Exemplo n.º 3
0
		public NodeInfo (NodeInfo parent, MemberInfo mi)
			: this (parent, mi, null)
		{
		}
Exemplo n.º 4
0
		public NodeInfo (NodeInfo parent, object description)
			: this (parent, NodeTypes.Other, null, null, description)
		{
		}
Exemplo n.º 5
0
		public NodeInfo (NodeInfo parent, NodeTypes type)
			: this (parent, type, null, null, null)
		{
		}
Exemplo n.º 6
0
		public NodeInfo (NodeInfo parent, NodeTypes type, object reflectionObject, 
				object reflectionInstance)
			: this (parent, type, reflectionObject, reflectionInstance, null)
		{
		}
Exemplo n.º 7
0
		public int Add (NodeInfo value)
		{
			return InnerList.Add (value);
		}
Exemplo n.º 8
0
		public void AddRange (NodeInfo[] values)
		{
			foreach (NodeInfo n in values)
				Add (n);
		}
Exemplo n.º 9
0
 public NodeInfo(NodeInfo parent, MemberInfo mi)
     : this(parent, mi, null)
 {
 }
Exemplo n.º 10
0
 public NodeInfo(NodeInfo parent, object description)
     : this(parent, NodeTypes.Other, null, null, description)
 {
 }
Exemplo n.º 11
0
 public NodeInfo(NodeInfo parent, NodeTypes type)
     : this(parent, type, null, null, null)
 {
 }
Exemplo n.º 12
0
 public NodeInfo(NodeInfo parent, NodeTypes type, object reflectionObject,
                 object reflectionInstance)
     : this(parent, type, reflectionObject, reflectionInstance, null)
 {
 }
Exemplo n.º 13
0
 public int Add(NodeInfo value)
 {
     return(InnerList.Add(value));
 }