23 references to CastArray
Microsoft.CodeAnalysis.CSharp (6)
BoundTree\BoundNode.cs (1)
368ImmutableArray<BoundNode>.CastUp(collection.Elements.CastArray<BoundExpression>()) == collection.Elements);
FlowAnalysis\NullableWalker.cs (1)
7017elements = ((BoundCollectionExpression)((BoundConversion)argument).Operand).UnconvertedCollectionExpression.Elements.CastArray<BoundExpression>();
Symbols\NamedTypeSymbol.cs (2)
1709=> GetMembers().CastArray<ISymbolInternal>(); 1712=> GetMembers(name).CastArray<ISymbolInternal>();
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (2)
141public override ImmutableArray<Symbol> GetMembers() => Constructors.CastArray<Symbol>(); 143public override ImmutableArray<Symbol> GetMembers(string name) => name == WellKnownMemberNames.InstanceConstructorName ? Constructors.CastArray<Symbol>() : ImmutableArray<Symbol>.Empty;
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (2)
771var vsixAnalyzerReferences = new List<DiagnosticAnalyzer>(vsixAnalyzers.CastArray<DiagnosticAnalyzer>()); 772vsixAnalyzerReferences.AddRange(vsixSuppressors.CastArray<DiagnosticAnalyzer>());
Microsoft.CodeAnalysis.CSharp.Features (3)
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.CallSiteContainerRewriter.cs (1)
289var statements = _statementsOrMemberOrAccessorToInsert.CastArray<StatementSyntax>();
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (2)
91return status.With(statements.CastArray<SyntaxNode>()); 110statements: statements.CastArray<SyntaxNode>(),
Microsoft.CodeAnalysis.Features (1)
GoToBase\FindBaseHelpers.cs (1)
23var result = BaseTypeFinder.FindBaseTypesAndInterfaces(namedTypeSymbol).CastArray<ISymbol>();
Microsoft.CodeAnalysis.VisualBasic (2)
Symbols\NamedTypeSymbol.vb (2)
1346Return GetMembers().CastArray(Of ISymbolInternal) 1350Return GetMembers(name).CastArray(Of ISymbolInternal)
Microsoft.CodeAnalysis.VisualBasic.Features (2)
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.vb (2)
73statements:=statements.CastArray(Of SyntaxNode)) 167Return status.With(statements.CastArray(Of SyntaxNode))
Microsoft.CodeAnalysis.Workspaces (5)
FindSymbols\FindReferences\Finders\EventSymbolReferenceFinder.cs (1)
33.CastArray<ISymbol>();
Workspace\Solution\ProjectState.cs (4)
975oldDocuments.CastArray<TextDocumentState>(), 976newDocuments.CastArray<TextDocumentState>(), 1000oldDocuments.CastArray<TextDocumentState>(), 1001newDocuments.CastArray<TextDocumentState>(),
Microsoft.Interop.SourceGeneration (1)
TypeSymbolExtensions.cs (1)
291currentType.TypeParameters.CastArray<ITypeSymbol>().CopyTo(currentType.TypeParameters.Length - numArgumentsToPropogate, arguments, numArgumentsToCopy, numArgumentsToPropogate);
System.Collections.Immutable (1)
System\Collections\Immutable\ImmutableArray_1.Minimal.cs (1)
332/// <see cref="ImmutableArray{T}.As{TOther}"/> or <see cref="ImmutableArray{T}.CastArray{TOther}"/>method.