Ejemplo n.º 1
0
 public MethodPropertyDescriptor(object monitoredObject, MethodInfo method)
     : base((method.IsPublic ? "+ ":"- ") + method.Name, null)
 {
     this.monitoredObject = monitoredObject;
     this.method          = method;
     valueHolder          = new MethodPropertyValueHolder(this);
 }
		public MethodPropertyDescriptor( object monitoredObject, MethodInfo method )
			: base( (method.IsPublic ? "+ ":"- ") +  method.Name, null )
		{
			this.monitoredObject = monitoredObject;
			this.method = method;
			valueHolder = new MethodPropertyValueHolder(this);
		}
 public MethodPropertyDescriptor(object monitoredObject, MethodInfo method, Type ownerType, int depth)
     : base((method.IsPublic ? "+ " : "- ") + method.Name, null)
 {
     this.monitoredObject = monitoredObject;
     this.methodInfo = method;
     this.ownerType = ownerType;
     this.depth = depth;
     valueHolder = new MethodPropertyValueHolder(this);
 }
 public MethodPropertyDescriptor(object monitoredObject, MethodInfo method, Type ownerType, int depth)
     : base((method.IsPublic ? "+ " : "- ") + method.Name, null)
 {
     this.monitoredObject = monitoredObject;
     this.methodInfo      = method;
     this.ownerType       = ownerType;
     this.depth           = depth;
     valueHolder          = new MethodPropertyValueHolder(this);
 }