24using System.Collections.Generic;
25using System.ComponentModel;
31 [global::System.AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, Inherited =
false, AllowMultiple =
false)]
44#if !CompactFramework && !WindowsCE && !PocketPC && !XBOX360 && !SILVERLIGHT && !WINDOWS_PHONE && !NETFX_CORE
48 List<PropertyDescriptor> rv =
new List<PropertyDescriptor>();
50 foreach (PropertyInfo info
in t.GetProperties())
65 atts = info.GetCustomAttributes(typeof(DescriptionAttribute),
true);
68 DescriptionAttribute att2 = (DescriptionAttribute)atts[0];
74 foreach (FieldInfo info
in t.GetFields())
89 atts = info.GetCustomAttributes(typeof(DescriptionAttribute),
true);
92 DescriptionAttribute att2 = (DescriptionAttribute)atts[0];
104 return new PropertyDescriptorCollection(rv.ToArray()).Sort(order);
106 return new PropertyDescriptorCollection(rv.ToArray());
static PropertyDescriptorCollection GetDispMembers(Type t)
AdvBrowsableAttribute(string name)
static string[] GetOrder(Type type)
void SetDescription(string value)