2 writes to _propertyDescriptor
System.Windows.Forms.Design (2)
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (2)
26
_propertyDescriptor
= propertyDescriptor;
127
_propertyDescriptor
= value;
17 references to _propertyDescriptor
System.Windows.Forms.Design (17)
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (17)
112
public override Type ComponentType =>
_propertyDescriptor
.ComponentType;
117
public override bool IsReadOnly =>
_propertyDescriptor
.IsReadOnly || Equals(Attributes[typeof(ReadOnlyAttribute)], ReadOnlyAttribute.Yes);
123
get =>
_propertyDescriptor
;
126
Debug.Assert(value is not InheritedPropertyDescriptor, $"Recursive inheritance propertyDescriptor {
_propertyDescriptor
}");
134
public override Type PropertyType =>
_propertyDescriptor
.PropertyType;
144
return
_propertyDescriptor
.CanResetValue(component);
158
!
_propertyDescriptor
.TryGetAttribute(out DesignerSerializationVisibilityAttribute? dsva) ||
180
foreach (Attribute attr in
_propertyDescriptor
.Attributes)
191
return
_propertyDescriptor
.GetValue(component);
205
if (!
_propertyDescriptor
.ShouldSerializeValue(component))
207
if (
_propertyDescriptor
.TryGetAttribute(out DefaultValueAttribute? defaultAttribute))
215
currentValue =
_propertyDescriptor
.GetValue(component);
220
_defaultValue =
_propertyDescriptor
.GetValue(component);
243
_propertyDescriptor
.ResetValue(component);
269
_propertyDescriptor
.SetValue(component, value);
279
return
_propertyDescriptor
.ShouldSerializeValue(component) && Attributes.Contains(DesignerSerializationVisibilityAttribute.Content);
284
return
_propertyDescriptor
.ShouldSerializeValue(component);