813 references to System_String
Aspire.Hosting.Analyzers (1)
Aspire.Hosting.Integration.Analyzers (1)
ConfigurationSchemaGenerator (8)
GenerateDocumentationAndConfigFiles (10)
ILLink.RoslynAnalyzer (6)
Microsoft.Analyzers.Extra (1)
Microsoft.AspNetCore.App.Analyzers (5)
Microsoft.AspNetCore.Components.Analyzers (1)
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (14)
Microsoft.AspNetCore.Mvc.Analyzers (1)
Microsoft.CodeAnalysis (171)
SpecialMembers.cs (61)
21(byte)SpecialType.System_String, // DeclaringTypeId
29(byte)SpecialType.System_String, // DeclaringTypeId
32(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
33(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
34(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
38(byte)SpecialType.System_String, // DeclaringTypeId
41(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
42(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
43(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
44(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
48(byte)SpecialType.System_String, // DeclaringTypeId
51(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
52(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
53(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
54(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
55(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
59(byte)SpecialType.System_String, // DeclaringTypeId
62(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
63(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
67(byte)SpecialType.System_String, // DeclaringTypeId
70(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
75(byte)SpecialType.System_String, // DeclaringTypeId
78(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
84(byte)SpecialType.System_String, // DeclaringTypeId
87(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
94(byte)SpecialType.System_String, // DeclaringTypeId
97(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
102(byte)SpecialType.System_String, // DeclaringTypeId
105(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
115(byte)SpecialType.System_String, // DeclaringTypeId
118(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
131(byte)SpecialType.System_String, // DeclaringTypeId
134(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
150(byte)SpecialType.System_String, // DeclaringTypeId
154(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
155(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
159(byte)SpecialType.System_String, // DeclaringTypeId
163(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
164(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
168(byte)SpecialType.System_String, // DeclaringTypeId
175(byte)SpecialType.System_String, // DeclaringTypeId
183(byte)SpecialType.System_String, // DeclaringTypeId
186(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
187(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
192(byte)SpecialType.System_String, // DeclaringTypeId
195(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type
197(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
202(byte)SpecialType.System_String, // DeclaringTypeId
205(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type
211(byte)SpecialType.System_String, // DeclaringTypeId
214(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type
219(byte)SpecialType.System_String, // DeclaringTypeId
225(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
950(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
1114(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Field Signature
1120(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Field Signature
1126(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Field Signature
1132(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Field Signature
1138(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Field Signature
1144(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Field Signature
1150(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Field Signature
WellKnownMembers.cs (92)
322(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
361(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
369(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
503(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
518(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
525(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type
627(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
662(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
686(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
725(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
726(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
913(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
1222(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
1262(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
1280(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
1303(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
1331(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
1347(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
1355(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
1363(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
1371(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
1379(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
1387(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
1395(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
1403(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
1411(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
1419(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
1427(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
1435(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
1443(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
1451(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
1459(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
1466(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type
1474(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type
1482(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type
1490(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type
1498(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type
1506(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type
1514(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type
1522(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type
1530(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type
1538(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type
1546(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type
1554(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type
1961(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
1962(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
1971(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
1972(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
1983(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
1985(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
1998(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
2000(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
2012(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
2014(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
2025(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
2027(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
2040(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
2050(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
2060(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
2090(byte)SignatureTypeCode.ByReference, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
2093(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
2124(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
2125(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
2215(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
2232(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type
2233(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
2240(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type
2248(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type
2249(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
2264(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type
2265(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
2272(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type
2280(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type
2281(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
2290(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
2525(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
2541(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
2583(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
2929(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
3083(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Value
3201(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Value
3317(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
3814(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
3882(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Argument
3905(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
3935(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type
4034(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
4042(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
4071(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
4383(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
4657(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String,
5241(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_String, // Return Type
Microsoft.CodeAnalysis.Analyzers (20)
Microsoft.CodeAnalysis.AnalyzerUtilities (22)
Microsoft.CodeAnalysis.CodeStyle (12)
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
Microsoft.CodeAnalysis.CSharp (128)
Binder\Binder_InterpolatedString.cs (9)
41var stringType = GetSpecialType(SpecialType.System_String, diagnostics, node);
167var constantValue = ConstantValue.Create(text, SpecialType.System_String);
219Debug.Assert(unconvertedInterpolatedString.Type?.SpecialType == SpecialType.System_String);
245Debug.Assert(unconvertedInterpolatedString.Parts.All(static part => part.Type is null or { SpecialType: SpecialType.System_String }));
304fillin.Value.Type?.SpecialType != SpecialType.System_String ||
414expressions[0] = new BoundLiteral(syntax, ConstantValue.Create(formatString.ToStringAndFree()), GetSpecialType(Microsoft.CodeAnalysis.SpecialType.System_String, diagnostics, syntax)) { WasCompilerGenerated = true };
436=> parts.All(p => p is BoundLiteral or BoundStringInsert { Value.Type.SpecialType: SpecialType.System_String, Alignment: null, Format: null });
517var @string = GetSpecialType(SpecialType.System_String, diagnostics, rootSyntax);
887Debug.Assert(part is BoundLiteral { Type: { SpecialType: SpecialType.System_String }, ConstantValueOpt.IsString: true });
Binder\Binder_Invocation.cs (5)
1726defaultValue = new BoundLiteral(syntax, ConstantValue.Create(path), Compilation.GetSpecialType(SpecialType.System_String)) { WasCompilerGenerated = true };
1731defaultValue = new BoundLiteral(syntax, ConstantValue.Create(memberName), Compilation.GetSpecialType(SpecialType.System_String)) { WasCompilerGenerated = true };
1736&& Conversions.ClassifyBuiltInConversion(Compilation.GetSpecialType(SpecialType.System_String), parameterType, isChecked: false, ref discardedUseSiteInfo).Exists
1739defaultValue = new BoundLiteral(syntax, ConstantValue.Create(argument.Syntax.ToString()), Compilation.GetSpecialType(SpecialType.System_String)) { WasCompilerGenerated = true };
2459return new BoundNameOfOperator(node, boundArgument, ConstantValue.Create(name), Compilation.GetSpecialType(SpecialType.System_String));
Symbols\Source\SourceNamedTypeSymbol.cs (7)
948string? name = attributeData.GetConstructorArgument<string>(0, SpecialType.System_String);
1042string? methodName = attributeData.GetConstructorArgument<string>(1, SpecialType.System_String);
1209string? methodName = attribute.CommonConstructorArguments[1].DecodeValue<string>(SpecialType.System_String);
1418string name = attribute.GetConstructorArgument<string>(0, SpecialType.System_String);
1766new TypedConstant(compilation.GetSpecialType(SpecialType.System_String), TypedConstantKind.Primitive, PEModule.ByRefLikeMarker), // message
1772ImmutableArray.Create(new TypedConstant(compilation.GetSpecialType(SpecialType.System_String), TypedConstantKind.Primitive, nameof(CompilerFeatureRequiredFeatures.RefStructs))),
1785var defaultMemberNameConstant = new TypedConstant(compilation.GetSpecialType(SpecialType.System_String), TypedConstantKind.Primitive, defaultMemberName);
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
Microsoft.CodeAnalysis.CSharp.Features (5)
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (1)
Microsoft.CodeAnalysis.CSharp.Scripting (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Microsoft.CodeAnalysis.Extensions.Package (4)
Microsoft.CodeAnalysis.Features (23)
Microsoft.CodeAnalysis.NetAnalyzers (131)
Microsoft.CodeAnalysis.Razor.Compiler (7)
Microsoft.CodeAnalysis.ResxSourceGenerator (9)
Microsoft.CodeAnalysis.Scripting (2)
Microsoft.CodeAnalysis.VisualBasic (123)
Binding\Binder_Expressions.vb (5)
765Return New BoundNameOfOperator(node, argument, ConstantValue.Create(value), GetSpecialType(SpecialType.System_String, node, diagnostics))
3752GetSpecialType(SpecialType.System_String, node.Name, diagnostics))),
3771Dim arg = New BoundLiteral(name, ConstantValue.Create(node.Name.Identifier.ValueText), GetSpecialType(SpecialType.System_String, name, diagnostics))
3790Dim arg = New BoundLiteral(name, ConstantValue.Create(node.Name.Identifier.ValueText), GetSpecialType(SpecialType.System_String, name, diagnostics))
3833GetSpecialType(SpecialType.System_String, node.Name, diagnostics))),
Binding\Binder_XmlLiterals.vb (5)
292Dim prefixesType = CreateArrayType(GetSpecialType(SpecialType.System_String, syntax, diagnostics))
674memberAccess = BadExpression(syntax, ImmutableArray.Create(receiver, name), Compilation.GetSpecialType(SpecialType.System_String))
797Return BadExpression(syntax, Compilation.GetSpecialType(SpecialType.System_String))
903Dim result = BadExpression(syntax, Compilation.GetSpecialType(SpecialType.System_String))
1057Dim result = New BoundLiteral(syntax, ConstantValue.Create(str), GetSpecialType(SpecialType.System_String, syntax, diagnostics), hasErrors:=hasErrors)
Preprocessor\ExpressionEvaluator.vb (22)
39Const ___String = CType(SpecialType.System_String, Byte)
103Case SpecialType.System_String
342Case SpecialType.System_String
396Return SpecialType.System_String
417If specialType <> SpecialType.System_Object AndAlso specialType <> SpecialType.System_String Then
422value.SpecialType = SpecialType.System_String Then
449val.SpecialType = SpecialType.System_String Then
526specialType = SpecialType.System_String
630Case SpecialType.System_String
631Return ReportSemanticError(ERRID.ERR_RequiredConstConversion2, expr, SpecialType.System_String.GetDisplayName(), SpecialType.System_Boolean.GetDisplayName())
676Case SpecialType.System_String
677Return ReportSemanticError(ERRID.ERR_RequiredConstConversion2, expr, SpecialType.System_String.GetDisplayName(), toSpecialType.GetDisplayName())
718Case SpecialType.System_String
753Case SpecialType.System_String
784Case SpecialType.System_String
805If specialType = SpecialType.System_String Then
832Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr, specialType, SpecialType.System_String.GetDisplayName())
856If specialType = SpecialType.System_String OrElse
1023OperandType = SpecialType.System_String
1045OperandType = SpecialType.System_String
1077If ResultType = SpecialType.System_String Then
1491ElseIf left.SpecialType = SpecialType.System_String Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (7)
Microsoft.CodeAnalysis.VisualBasic.Features (3)
Microsoft.CodeAnalysis.VisualBasic.NetAnalyzers (2)
Microsoft.CodeAnalysis.VisualBasic.Scripting (1)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (8)
Microsoft.CodeAnalysis.Workspaces (9)
Microsoft.Diagnostics.DataContractReader.DataGenerator (1)
Microsoft.DotNet.CodeAnalysis (1)
Microsoft.Extensions.Configuration.Binder.SourceGeneration (8)
Microsoft.Extensions.Logging.Generators (2)
Microsoft.Extensions.Options.SourceGeneration (7)
Microsoft.Extensions.Validation.ValidationsGenerator (4)
Microsoft.Gen.Logging (2)
Microsoft.Gen.MetadataExtractor (1)
Microsoft.Gen.Metrics (1)
Microsoft.Gen.MetricsReports (1)
Microsoft.Interop.ComInterfaceGenerator (1)
Microsoft.Interop.JavaScript.JSImportGenerator (1)
Microsoft.Interop.LibraryImportGenerator (2)
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
Microsoft.Interop.SourceGeneration (4)
Roslyn.Diagnostics.Analyzers (11)
Roslyn.Diagnostics.CSharp.Analyzers (3)
Roslyn.Diagnostics.VisualBasic.Analyzers (6)
System.Text.Json.SourceGeneration (5)