protected CollectPropertyNames ( |
||
type | The type. | |
return | string[] |
protected virtual string[] CollectPropertyNames(Type type)
{
if (type == null) return new string[0];
PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(type);
string[] propertyDescNames = new string[properties.Count];
for (int i = 0; i < properties.Count; ++i)
{
propertyDescNames[i] = properties[i].Name;
}
return propertyDescNames;
}
}