47 references to System_Array
ILLink.RoslynAnalyzer (1)
ITypeSymbolExtensions.cs (1)
73 SpecialType.System_Array => WellKnownType.System_Array,
Microsoft.CodeAnalysis (12)
SpecialMembers.cs (7)
885(byte)SpecialType.System_Array, // DeclaringTypeId 892(byte)SpecialType.System_Array, // DeclaringTypeId 899(byte)SpecialType.System_Array, // DeclaringTypeId 907(byte)SpecialType.System_Array, // DeclaringTypeId 1288(byte)SpecialType.System_Array, // DeclaringTypeId 1295(byte)SpecialType.System_Array, // DeclaringTypeId 1302(byte)SpecialType.System_Array, // DeclaringTypeId
WellKnownMembers.cs (5)
1010(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Array, 2114(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Array, // Return Type 2115(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Array, 2116(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Array, 4080(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Array,
Microsoft.CodeAnalysis.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
272case SpecialType.System_Array or SpecialType.System_ValueType:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (1)
1028return newSymbolContainingType.SpecialType is SpecialType.System_Array or
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
449if (containingType?.SpecialType == SpecialType.System_Array ||
Microsoft.CodeAnalysis.CSharp (11)
Binder\Binder_Constraints.cs (1)
576case SpecialType.System_Array:
Binder\Semantics\Conversions\ConversionsBase.cs (4)
2739if (destination.GetSpecialTypeSafe() == SpecialType.System_Array) 2744if (IsBaseInterface(destination, this.corLibrary.GetDeclaredSpecialType(SpecialType.System_Array), ref useSiteInfo)) 3749if (source.SpecialType == SpecialType.System_Array) 3754foreach (var iface in this.corLibrary.GetDeclaredSpecialType(SpecialType.System_Array).AllInterfacesWithDefinitionUseSiteDiagnostics(ref useSiteInfo))
Binder\Semantics\Operators\OperatorFacts.cs (1)
34case SpecialType.System_Array:
Symbols\ArrayTypeSymbol.cs (2)
72return CreateMDArray(elementType, rank, sizes, lowerBounds, declaringAssembly.GetSpecialType(SpecialType.System_Array)); 94return CreateSZArray(elementType, declaringAssembly.GetSpecialType(SpecialType.System_Array), GetSZArrayInterfaces(elementType, declaringAssembly));
Symbols\ConstraintsHelper.cs (1)
270constraintEffectiveBase = corLibrary.GetSpecialType(SpecialType.System_Array);
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (2)
482else if (baseSpecialType == SpecialType.System_Array && this.ContainingAssembly.CorLibrary == this.ContainingAssembly) 647case SpecialType.System_Array:
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseIndexOperatorDiagnosticAnalyzer.cs (1)
84var arrayType = compilation.GetSpecialType(SpecialType.System_Array);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Emit\EmitMetadataTests.cs (1)
449Assert.Same(module.GetCorLibType(SpecialType.System_Array), parameter1Type);
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseIndexOperatorDiagnosticAnalyzer.cs (1)
84var arrayType = compilation.GetSpecialType(SpecialType.System_Array);
Microsoft.CodeAnalysis.Features (1)
GenerateType\AbstractGenerateTypeService.State.cs (1)
252SpecialType.System_Array or
Microsoft.CodeAnalysis.VisualBasic (6)
Binding\Binder_Expressions.vb (1)
3803If type.SpecialType = SpecialType.System_Array Then
Binding\Binder_Invocation.vb (1)
339target.Type.SpecialType = SpecialType.System_Array Then
Binding\Binder_Statements.vb (1)
810target.Type.SpecialType <> SpecialType.System_Array AndAlso
Symbols\ConstraintsHelper.vb (1)
180SpecialType.System_Array
Symbols\Source\SourceNamedTypeSymbol.vb (1)
1254Case SpecialType.System_Array,
Symbols\SpecialTypeExtensions.vb (1)
218Case SpecialType.System_Array
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Emit\EmitMetadata.vb (1)
512Assert.Same([Module].GetCorLibType(SpecialType.System_Array), parameter1Type)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (4)
Compilation\CompilationAPITests.vb (1)
405Assert.Equal(SpecialType.System_Array, comp.GetTypeByMetadataName("System.Array").SpecialType)
Semantics\ForeachTest.vb (1)
1256Assert.Equal(comp.GetSpecialType(SpecialType.System_Array), loopInfo0.GetEnumeratorMethod.ContainingType) ' Unlike C#, the spec doesn't say that arrays use IEnumerable
Semantics\GetExtendedSemanticInfoTests.vb (2)
6219Dim getEnumerator = DirectCast(DirectCast(compilation.GetSpecialType(System_Array), TypeSymbol).GetMember("GetEnumerator"), MethodSymbol) 6261Dim getEnumerator = DirectCast(DirectCast(compilation.GetSpecialType(System_Array), TypeSymbol).GetMember("GetEnumerator"), MethodSymbol)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
SymbolsTests\Source\TypeBindingTests.vb (1)
49Assert.Same(sourceMod.GetCorLibType(SpecialType.System_Array), arrayTypeA.BaseType)
Microsoft.CodeAnalysis.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
272case SpecialType.System_Array or SpecialType.System_ValueType:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (1)
1028return newSymbolContainingType.SpecialType is SpecialType.System_Array or
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
449if (containingType?.SpecialType == SpecialType.System_Array ||
Microsoft.Interop.ComInterfaceGenerator (1)
Analyzers\ConvertComImportToGeneratedComInterfaceAnalyzer.cs (1)
222public bool CanProvideMarshallingInfoForType(ITypeSymbol type) => type is { TypeKind: TypeKind.Array or TypeKind.Delegate } or { SpecialType: SpecialType.System_Array or SpecialType.System_Object };