52 references to ToImmutableArray
CodeStyleConfigFileGenerator (1)
Program.cs (1)
40var assemblyList = args[3].Split([';'], StringSplitOptions.RemoveEmptyEntries).ToImmutableArray();
crossgen2 (1)
Program.cs (1)
623compositeImageSettings.PublicKey = compositeStrongNameKey.ToImmutableArray();
dotnet-format (3)
Utilities\SourceFileMatcher.cs (3)
27? include.ToImmutableArray() 28: AllFilesList.ToImmutableArray(); 29Exclude = exclude.ToImmutableArray();
GenerateDocumentationAndConfigFiles (2)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (1)
489var names = optionValue.Split(['|'], StringSplitOptions.RemoveEmptyEntries).ToImmutableArray();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (1)
103var contentHash = bytes[HashIndex..HashSize].ToImmutableArray();
ILCompiler.Compiler (2)
src\runtime\src\coreclr\tools\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (2)
586return new int[rank].ToImmutableArray(); 593result[i] = new int[i].ToImmutableArray();
ILCompiler.ReadyToRun (3)
Compiler\FileLayoutOptimizer.cs (1)
117return newNodesArray.ToImmutableArray();
src\runtime\src\coreclr\tools\Common\TypeSystem\MetadataEmitter\TypeSystemMetadataEmitter.cs (2)
586return new int[rank].ToImmutableArray(); 593result[i] = new int[i].ToImmutableArray();
ILCompiler.RyuJit (1)
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\FileLayoutOptimizer.cs (1)
117return newNodesArray.ToImmutableArray();
Microsoft.AspNetCore.Razor.Utilities.Shared (1)
Utilities\RestrictedInternalsVisibleToAttribute.cs (1)
12public ImmutableArray<string> AllowedNamespaces { get; } = allowedNamespaces.ToImmutableArray();
Microsoft.CodeAnalysis.Analyzers (3)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
329select Task.Run(() => ComputeAsync(child, context))).ConfigureAwait(false)).ToImmutableArray();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (1)
489var names = optionValue.Split(['|'], StringSplitOptions.RemoveEmptyEntries).ToImmutableArray();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (1)
103var contentHash = bytes[HashIndex..HashSize].ToImmutableArray();
Microsoft.CodeAnalysis.AnalyzerUtilities (3)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
329select Task.Run(() => ComputeAsync(child, context))).ConfigureAwait(false)).ToImmutableArray();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (1)
489var names = optionValue.Split(['|'], StringSplitOptions.RemoveEmptyEntries).ToImmutableArray();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (1)
103var contentHash = bytes[HashIndex..HashSize].ToImmutableArray();
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (1)
103var contentHash = bytes[HashIndex..HashSize].ToImmutableArray();
Microsoft.CodeAnalysis.CSharp (3)
Lowering\SyntheticBoundNodeFactory.cs (1)
772=> New(ctor, args.ToImmutableArray());
Symbols\FileIdentifier.cs (1)
49hash = hashAlgorithm.ComputeHash(encodedFilePath).ToImmutableArray();
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
376lazyFilePathChecksum = ordinal.ToImmutableArray(),
Microsoft.CodeAnalysis.Features (3)
CodeLens\CodeLensReferencesService.cs (1)
209return result.ToImmutableArray();
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (1)
386=> @namespace?.Split(s_dotSeparator).ToImmutableArray() ?? default;
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.MoveFileCodeAction.cs (1)
61: state.RelativeDeclaredNamespace.Split(['.']).ToImmutableArray();
Microsoft.CodeAnalysis.Rebuild (5)
CompilationOptionsReader.cs (2)
197var sourceTextInfo = new SourceTextInfo(name, hashAlgorithm, hash.ToImmutableArray(), encoding); 242return new EmbeddedSourceTextInfo(sourceTextInfo, embeddedText, compressedHash?.ToImmutableArray() ?? ImmutableArray<byte>.Empty);
CSharpCompilationFactory.cs (2)
76: define.Split(',').ToImmutableArray(); 100cryptoPublicKey: optionsReader.GetPublicKey()?.ToImmutableArray() ?? default,
VisualBasicCompilationFactory.cs (1)
113cryptoPublicKey: optionsReader.GetPublicKey()?.ToImmutableArray() ?? default,
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
329select Task.Run(() => ComputeAsync(child, context))).ConfigureAwait(false)).ToImmutableArray();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (1)
489var names = optionValue.Split(['|'], StringSplitOptions.RemoveEmptyEntries).ToImmutableArray();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (1)
103var contentHash = bytes[HashIndex..HashSize].ToImmutableArray();
Microsoft.CodeAnalysis.Workspaces (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (1)
103var contentHash = bytes[HashIndex..HashSize].ToImmutableArray();
Workspace\CommandLineProject.cs (1)
200return directory.Split(s_folderSplitters, StringSplitOptions.RemoveEmptyEntries).ToImmutableArray();
Microsoft.CodeAnalysis.Workspaces.MSBuild (3)
MSBuild\MSBuildProjectLoader.Worker_ResolveReferences.cs (1)
202if (TryAddReferenceToKnownProject(id, projectReferencePath, aliases.ToImmutableArray(), builder))
Rpc\RemoteProjectFile.cs (2)
26return diagnostics.ToImmutableArray(); 32return projectFileInfos.ToImmutableArray();
Roslyn.Diagnostics.Analyzers (3)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\CodeMetrics\CodeAnalysisMetricData.cs (1)
329select Task.Run(() => ComputeAsync(child, context))).ConfigureAwait(false)).ToImmutableArray();
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Options\AnalyzerOptionsExtensions.cs (1)
489var names = optionValue.Split(['|'], StringSplitOptions.RemoveEmptyEntries).ToImmutableArray();
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (1)
103var contentHash = bytes[HashIndex..HashSize].ToImmutableArray();
System.Collections.Immutable (1)
System\Collections\Immutable\ImmutableArray_1.cs (1)
964return items.ToImmutableArray();
System.Reflection.Metadata (8)
System\Reflection\Internal\MemoryBlocks\AbstractMemoryBlock.cs (1)
43var result = new ReadOnlySpan<byte>(Pointer + start, length).ToImmutableArray();
System\Reflection\Metadata\Ecma335\BlobDictionary.cs (1)
54immutableKey = key.ToImmutableArray();
System\Reflection\Metadata\Ecma335\MetadataAggregator.cs (6)
161userStringSizes.ToImmutableArray(), 162stringSizes.ToImmutableArray(), 163blobSizes.ToImmutableArray(), 164guidSizes.ToImmutableArray()); 187immutable[i] = array[i].ToImmutableArray(); 190return immutable.ToImmutableArray();