public static void AddReadOnlyAttribute(this PropertyDescriptor p, bool value) { p.AddAttribute(new ReadOnlyAttribute(value)); }