12 references to Yes
System.ComponentModel.TypeConverter (4)
System\ComponentModel\ExtendedPropertyDescriptor.cs (2)
34
attrList.Add(ReadOnlyAttribute.
Yes
);
78
public override bool IsReadOnly => Attributes[typeof(ReadOnlyAttribute)]!.Equals(ReadOnlyAttribute.
Yes
);
System\ComponentModel\ReflectPropertyDescriptor.cs (1)
892
attributes.Add(ReadOnlyAttribute.
Yes
);
System\ComponentModel\TypeConverter.cs (1)
374
get { return Attributes.Contains(ReadOnlyAttribute.
Yes
); }
System.Windows.Forms (1)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
351
_readOnly |= Attributes[typeof(ReadOnlyAttribute)]?.Equals(ReadOnlyAttribute.
Yes
) ?? false;
System.Windows.Forms.Design (5)
System\ComponentModel\Design\ComponentDesigner.cs (2)
640
events[evt.Name] = TypeDescriptor.CreateEvent(evt.ComponentType, evt, ReadOnlyAttribute.
Yes
);
668
properties[prop.Name] = TypeDescriptor.CreateProperty(prop.ComponentType, prop, ReadOnlyAttribute.
Yes
);
System\ComponentModel\Design\EventBindingService.EventPropertyDescriptor.cs (1)
65
public override bool IsReadOnly => Attributes[typeof(ReadOnlyAttribute)]!.Equals(ReadOnlyAttribute.
Yes
);
System\ComponentModel\Design\InheritedPropertyDescriptor.cs (2)
84
ReadOnlyAttribute.
Yes
,
117
public override bool IsReadOnly => _propertyDescriptor.IsReadOnly || Equals(Attributes[typeof(ReadOnlyAttribute)], ReadOnlyAttribute.
Yes
);
System.Windows.Forms.Tests (2)
System\Windows\Forms\PropertyGridTests.cs (2)
536
yield return new object[] { new AttributeCollection([BrowsableAttribute.Yes, ReadOnlyAttribute.
Yes
]), new AttributeCollection([BrowsableAttribute.Yes, ReadOnlyAttribute.
Yes
]) };