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 (2)
1141
if (backingField.
IsReadOnly
)
1321
if (fieldSymbol.
IsReadOnly
)
Binder\Binder_Attributes.cs (1)
631
invalidNamedArgument |= fieldSymbol.
IsReadOnly
;
Binder\Binder_Expressions.cs (1)
5873
if (isRhsNestedInitializer && fieldSymbol.
IsReadOnly
&& fieldSymbol.Type.IsValueType)
CodeGen\CodeGenerator_HasHome.cs (1)
218
if (!field.
IsReadOnly
)
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)
605
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
;