5 overrides of IsReadOnly
Microsoft.CodeAnalysis.CSharp (5)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.FieldSymbol.cs (1)
80
public override bool
IsReadOnly
Symbols\Metadata\PE\PEFieldSymbol.cs (1)
457
public override bool
IsReadOnly
Symbols\Source\FieldSymbolWithAttributesAndModifiers.cs (1)
48
public sealed override bool
IsReadOnly
Symbols\Synthesized\SynthesizedFieldSymbolBase.cs (1)
105
public override bool
IsReadOnly
Symbols\Wrapped\WrappedFieldSymbol.cs (1)
139
public override bool
IsReadOnly
11 references to IsReadOnly
Microsoft.CodeAnalysis.CSharp (11)
Binder\Binder.ValueChecks.cs (3)
1164
if (backingField.
IsReadOnly
)
1344
if (fieldSymbol.
IsReadOnly
)
5892
if (!field.
IsReadOnly
)
Binder\Binder_Attributes.cs (1)
631
invalidNamedArgument |= fieldSymbol.
IsReadOnly
;
Binder\Binder_Expressions.cs (1)
5870
if (isRhsNestedInitializer && fieldSymbol.
IsReadOnly
&& fieldSymbol.Type.IsValueType)
Emitter\Model\FieldSymbolAdapter.cs (1)
204
return AdaptedFieldSymbol.
IsReadOnly
|| (AdaptedFieldSymbol.IsConst && !AdaptedFieldSymbol.IsMetadataConstant);
Lowering\SpillSequenceSpiller.cs (1)
410
if (refKind != RefKind.None || fieldSymbol.
IsReadOnly
)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
588
if (refKind != RefKind.None || field.FieldSymbol.
IsReadOnly
) return expr;
Symbols\PublicModel\FieldSymbol.cs (1)
84
bool IFieldSymbol.IsReadOnly => _underlying.
IsReadOnly
;
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1834
if (elementField.IsRequired || elementField.
IsReadOnly
|| elementField.IsVolatile || elementField.IsFixedSizeBuffer)
Symbols\Wrapped\WrappedFieldSymbol.cs (1)
143
return _underlyingField.
IsReadOnly
;