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