1 write to IsReadOnly
System.ComponentModel.Primitives (1)
System\ComponentModel\ReadOnlyAttribute.cs (1)
39public ReadOnlyAttribute(bool isReadOnly) => IsReadOnly = isReadOnly;
17 references to IsReadOnly
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\MetadataPropertyDescriptorWrapper.cs (1)
20_isReadOnly = readOnlyAttribute.IsReadOnly;
System.ComponentModel.Primitives (4)
System\ComponentModel\ReadOnlyAttribute.cs (4)
48value is ReadOnlyAttribute other && other.IsReadOnly == IsReadOnly; 52public override bool IsDefaultAttribute() => IsReadOnly == Default.IsReadOnly;
System.ComponentModel.TypeConverter (1)
System\ComponentModel\ReflectPropertyDescriptor.cs (1)
368public override bool IsReadOnly => SetMethodValue == null || ((ReadOnlyAttribute)Attributes[typeof(ReadOnlyAttribute)]!).IsReadOnly;
System.Windows.Forms.Design.Tests (2)
System\ComponentModel\Design\ComponentDesignerTests.cs (2)
2442Assert.True(Assert.IsType<ReadOnlyAttribute>(result.Attributes[typeof(ReadOnlyAttribute)]).IsReadOnly); 2882Assert.True(Assert.IsType<ReadOnlyAttribute>(result.Attributes[typeof(ReadOnlyAttribute)]).IsReadOnly);
System.Windows.Forms.Tests (9)
System\Windows\Forms\AxHost.AxPropertyDescriptorTests.cs (9)
28Assert.False(Assert.IsType<ReadOnlyAttribute>(property.Attributes[typeof(ReadOnlyAttribute)]).IsReadOnly); 44Assert.False(Assert.IsType<ReadOnlyAttribute>(property.Attributes[typeof(ReadOnlyAttribute)]).IsReadOnly); 60Assert.False(Assert.IsType<ReadOnlyAttribute>(property.Attributes[typeof(ReadOnlyAttribute)]).IsReadOnly); 76Assert.True(Assert.IsType<ReadOnlyAttribute>(property.Attributes[typeof(ReadOnlyAttribute)]).IsReadOnly); 92Assert.True(Assert.IsType<ReadOnlyAttribute>(property.Attributes[typeof(ReadOnlyAttribute)]).IsReadOnly); 506Assert.False(Assert.IsType<ReadOnlyAttribute>(property.Attributes[typeof(ReadOnlyAttribute)]).IsReadOnly); 574Assert.False(Assert.IsType<ReadOnlyAttribute>(property.Attributes[typeof(ReadOnlyAttribute)]).IsReadOnly); 791Assert.False(Assert.IsType<ReadOnlyAttribute>(property.Attributes[typeof(ReadOnlyAttribute)]).IsReadOnly); 856Assert.False(Assert.IsType<ReadOnlyAttribute>(property.Attributes[typeof(ReadOnlyAttribute)]).IsReadOnly);