5 implementations of IsReadOnly
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationPropertySymbol.cs (1)
67public bool IsReadOnly => this.GetMethod != null && this.SetMethod == null;
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\PropertySymbol.cs (1)
79bool IPropertySymbol.IsReadOnly
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\AbstractMetadataAsSourceService.WrappedPropertySymbol.cs (1)
32public bool IsReadOnly => _symbol.IsReadOnly;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\PropertySymbol.vb (1)
108Public Overridable ReadOnly Property IsReadOnly As Boolean Implements IPropertySymbol.IsReadOnly
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationPropertySymbol.cs (1)
67public bool IsReadOnly => this.GetMethod != null && this.SetMethod == null;
45 references to IsReadOnly
Metrics (2)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (2)
620IPropertySymbol property => property.IsReadOnly, 859IPropertySymbol property => property.IsReadOnly,
Metrics.Legacy (2)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (2)
620IPropertySymbol property => property.IsReadOnly, 859IPropertySymbol property => property.IsReadOnly,
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
StaticRouteHandlerModel\EndpointParameter.cs (1)
481var writableProperties = properties.Where(property => !property.IsReadOnly);
Microsoft.CodeAnalysis.Analyzers (2)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (2)
620IPropertySymbol property => property.IsReadOnly, 859IPropertySymbol property => property.IsReadOnly,
Microsoft.CodeAnalysis.AnalyzerUtilities (3)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (2)
620IPropertySymbol property => property.IsReadOnly, 859IPropertySymbol property => property.IsReadOnly,
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityFactory.cs (1)
297propertyReference.Property.IsReadOnly ||
Microsoft.CodeAnalysis.BannedApiAnalyzers (2)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (2)
620IPropertySymbol property => property.IsReadOnly, 859IPropertySymbol property => property.IsReadOnly,
Microsoft.CodeAnalysis.CodeStyle (6)
src\Workspaces\Core\Portable\Editing\DeclarationModifiers.cs (1)
83isReadOnly: field?.IsReadOnly == true || property?.IsReadOnly == true || type?.IsReadOnly == true || method?.IsReadOnly == true,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
500if (!propertySymbol.IsReadOnly &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (1)
330IPropertySymbol propertySymbol => !propertySymbol.IsReadOnly,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (2)
536p1.IsReadOnly != p2.IsReadOnly ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
206Hash.Combine(p.IsReadOnly,
Microsoft.CodeAnalysis.Extensions.Package (5)
Symbols\INamedTypeSymbolExtensions.cs (1)
500if (!propertySymbol.IsReadOnly &&
Symbols\ISymbolExtensions.cs (1)
330IPropertySymbol propertySymbol => !propertySymbol.IsReadOnly,
Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (2)
536p1.IsReadOnly != p2.IsReadOnly ||
Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
206Hash.Combine(p.IsReadOnly,
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\AbstractMetadataAsSourceService.WrappedPropertySymbol.cs (1)
32public bool IsReadOnly => _symbol.IsReadOnly;
Microsoft.CodeAnalysis.PublicApiAnalyzers (2)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (2)
620IPropertySymbol property => property.IsReadOnly, 859IPropertySymbol property => property.IsReadOnly,
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (2)
620IPropertySymbol property => property.IsReadOnly, 859IPropertySymbol property => property.IsReadOnly,
Microsoft.CodeAnalysis.VisualBasic (3)
SymbolDisplay\SymbolDisplayVisitor.Members.vb (1)
67If (symbol.IsReadOnly) Then
SymbolDisplay\SymbolDisplayVisitor.Types.vb (1)
411Return If(prop.IsReadOnly, "Key " & result, result)
Symbols\PropertySymbol.vb (1)
108Public Overridable ReadOnly Property IsReadOnly As Boolean Implements IPropertySymbol.IsReadOnly
Microsoft.CodeAnalysis.Workspaces (6)
Editing\DeclarationModifiers.cs (1)
83isReadOnly: field?.IsReadOnly == true || property?.IsReadOnly == true || type?.IsReadOnly == true || method?.IsReadOnly == true,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\INamedTypeSymbolExtensions.cs (1)
500if (!propertySymbol.IsReadOnly &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions.cs (1)
330IPropertySymbol propertySymbol => !propertySymbol.IsReadOnly,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (2)
536p1.IsReadOnly != p2.IsReadOnly ||
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
206Hash.Combine(p.IsReadOnly,
Roslyn.Diagnostics.Analyzers (4)
AbstractExposeMemberForTesting`1.cs (2)
134if (!propertySymbol.IsReadOnly) 144else if (propertySymbol.IsReadOnly)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (2)
620IPropertySymbol property => property.IsReadOnly, 859IPropertySymbol property => property.IsReadOnly,
Test.Utilities (2)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (2)
620IPropertySymbol property => property.IsReadOnly, 859IPropertySymbol property => property.IsReadOnly,
Text.Analyzers (2)
src\RoslynAnalyzers\Utilities\Compiler\Extensions\ISymbolExtensions.cs (2)
620IPropertySymbol property => property.IsReadOnly, 859IPropertySymbol property => property.IsReadOnly,