public DesignPropertyDescriptor(PropertyDescriptor prop, ProjectNode projectManager)
: base(prop)
{
if (prop == null)
throw new ArgumentNullException("prop");
if (projectManager == null)
throw new ArgumentNullException("projectManager");
this._projectManager = projectManager;
this.property = prop;
DisplayNameAttribute attr = prop.Attributes[typeof(DisplayNameAttribute)] as DisplayNameAttribute;
if(attr != null)
{
this.displayName = attr.DisplayName;
}
else
{
this.displayName = prop.Name;
}
}