Base:
property
IsDeclaredReadOnly
Microsoft.CodeAnalysis.CSharp.Symbols.MethodSymbol.IsDeclaredReadOnly
1 override of IsDeclaredReadOnly
Microsoft.CodeAnalysis.CSharp (1)
Symbols\Source\SourcePropertyAccessorSymbol.cs (1)
438
internal sealed override bool
IsDeclaredReadOnly
12 references to IsDeclaredReadOnly
Microsoft.CodeAnalysis.CSharp (5)
Symbols\Source\SourceMemberMethodSymbol.cs (2)
845
if (
IsDeclaredReadOnly
&& !ContainingType.IsReadOnly)
901
if (
IsDeclaredReadOnly
&& !ContainingType.IsReadOnly)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (2)
677
if (definition.
IsDeclaredReadOnly
!= implementation.
IsDeclaredReadOnly
)
Symbols\Source\SourceOrdinaryMethodSymbolBase.cs (1)
393
else if (IsStatic &&
IsDeclaredReadOnly
)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
Semantics\RecordStructTests.cs (7)
3795
Assert.True(method.
IsDeclaredReadOnly
);
3813
Assert.False(method.
IsDeclaredReadOnly
);
4649
Assert.True(recordEquals.
IsDeclaredReadOnly
);
4695
Assert.True(objectEquals.
IsDeclaredReadOnly
);
4808
Assert.True(method.
IsDeclaredReadOnly
);
5782
Assert.True(method.
IsDeclaredReadOnly
);
5797
Assert.False(method.
IsDeclaredReadOnly
);