4 implementations of IsReadOnly
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp (1)
Microsoft.CodeAnalysis.VisualBasic (1)
Microsoft.CodeAnalysis.Workspaces (1)
51 references to IsReadOnly
Microsoft.CodeAnalysis.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (7)
Microsoft.CodeAnalysis.CSharp.Features (6)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (22)
Semantics\ReadOnlyStructsTests.cs (22)
1192Assert.False(getMethod(s1, "M1").IsReadOnly);
1194Assert.True(getMethod(s1, "M2").IsReadOnly);
1196Assert.True(getProperty(s1, "P1").GetMethod.IsReadOnly);
1197Assert.False(getProperty(s1, "P1").SetMethod.IsReadOnly);
1199Assert.True(getProperty(s1, "P2").GetMethod.IsReadOnly);
1201Assert.True(getProperty(s1, "P3").GetMethod.IsReadOnly);
1203Assert.True(getProperty(s1, "P4").SetMethod.IsReadOnly);
1205Assert.False(getProperty(s1, "P5").GetMethod.IsReadOnly);
1206Assert.False(getProperty(s1, "P5").SetMethod.IsReadOnly);
1208Assert.True(getEvent(s1, "E").AddMethod.IsReadOnly);
1209Assert.True(getEvent(s1, "E").RemoveMethod.IsReadOnly);
1212Assert.True(getMethod(s2, "M1").IsReadOnly);
1213Assert.False(getMethod(s2, "M2").IsReadOnly);
1215Assert.True(getProperty(s2, "P1").GetMethod.IsReadOnly);
1217Assert.True(getProperty(s2, "P2").GetMethod.IsReadOnly);
1219Assert.True(getProperty(s2, "P3").SetMethod.IsReadOnly);
1221Assert.False(getProperty(s2, "P4").GetMethod.IsReadOnly);
1222Assert.False(getProperty(s2, "P4").SetMethod.IsReadOnly);
1224Assert.True(getEvent(s2, "E").AddMethod.IsReadOnly);
1225Assert.True(getEvent(s2, "E").RemoveMethod.IsReadOnly);
1287Assert.Equal(isEffectivelyReadOnly, symbol.IsReadOnly);
1292Assert.False(((IMethodSymbol)reducedFrom).IsReadOnly);
Microsoft.CodeAnalysis.CSharp.Workspaces (8)
Microsoft.CodeAnalysis.VisualBasic (1)
Microsoft.CodeAnalysis.Workspaces (1)