/// <summary> /// Returns property descriptors for the object</summary> /// <param name="owner">Object with properties</param> /// <returns>Array of property descriptors for the object</returns> public virtual PropertyDescriptor[] GetPropertyDescriptors(object owner) { if (m_innerContext != null) { return(m_innerContext.GetPropertyDescriptors(owner)); } return(PropertyUtils.GetDefaultProperties2(owner)); }
/// <summary> /// Gets the property descriptors for the given item in the collection</summary> /// <param name="item">The item in the collection</param> /// <returns>Property descriptor array for the given item in the collection</returns> protected virtual PropertyDescriptor[] GetDescriptors(object item) { return(PropertyUtils.GetDefaultProperties2(item)); }