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