public override object GetPropertyOwner(PropertyDescriptor pd) { ClassPointer cp = this.ClassPointer as ClassPointer; if (cp != null) { if (_rootDisplay == null) { _rootDisplay = new ClassPointerDisplay(cp); } return(_rootDisplay); } return(base.GetPropertyOwner(pd)); }
public override PropertyDescriptorCollection GetProperties(Attribute[] attributes) { ClassPointer cp = this.ClassPointer as ClassPointer; if (cp != null) { if (_rootDisplay == null) { _rootDisplay = new ClassPointerDisplay(cp); } return(TypeDescriptor.GetProperties(_rootDisplay, attributes)); } return(base.GetProperties(attributes)); }