139 references to ImmutableList
Aspire.Dashboard (2)
Components\Controls\Chart\ChartContainer.razor.cs (1)
179DimensionFilters = ImmutableList.Create(CollectionsMarshal.AsSpan(CreateUpdatedFilters(hasInstrumentChanged)));
Components\Pages\ConsoleLogs.razor.cs (1)
656var builder = ImmutableList.CreateBuilder<SelectViewModel<ResourceTypeDetails>>();
Aspire.Hosting (2)
ApplicationModel\ContainerCertificatePathsAnnotation.cs (2)
21internal static ImmutableList<string> DefaultCertificateBundlePaths { get; } = ImmutableList.Create( 38internal static ImmutableList<string> DefaultCertificateDirectoriesPaths { get; } = ImmutableList.Create(
GenerateDocumentationAndConfigFiles (11)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ImmutableListExtensions.cs (4)
16return ImmutableList.Create<T>(); 19return ImmutableList.Create<T>(items); 26return ImmutableList.Create<T>(); 29return ImmutableList.CreateRange<T>(items);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (7)
15/// <inheritdoc cref="ImmutableList.Create{T}()"/> 19/// <inheritdoc cref="ImmutableList.Create{T}(T)"/> 23/// <inheritdoc cref="ImmutableList.Create{T}(T[])"/> 27/// <inheritdoc cref="ImmutableList.CreateBuilder{T}()"/> 31/// <inheritdoc cref="ImmutableList.CreateRange{T}(IEnumerable{T})"/> 35/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(IEnumerable{TSource})"/> 44/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(ImmutableList{TSource}.Builder)"/>
Microsoft.AspNetCore.App.Analyzers (4)
Infrastructure\VirtualChars\AbstractVirtualCharService.cs (1)
157var result = ImmutableList.CreateBuilder<VirtualChar>();
Infrastructure\VirtualChars\CSharpVirtualCharService.cs (3)
137var result = ImmutableList.CreateBuilder<VirtualChar>(); 214var result = ImmutableList.CreateBuilder<VirtualChar>(); 307var runeResults = ImmutableList.CreateBuilder<VirtualChar>();
Microsoft.AspNetCore.Components.Endpoints (1)
FormMapping\Converters\CollectionAdapters\ImmutableListBufferAdapter.cs (1)
10public static ImmutableList<TElement>.Builder CreateBuffer() => ImmutableList.CreateBuilder<TElement>();
Microsoft.AspNetCore.Http.Extensions (1)
src\aspnetcore\src\Components\Endpoints\src\FormMapping\Converters\CollectionAdapters\ImmutableListBufferAdapter.cs (1)
10public static ImmutableList<TElement>.Builder CreateBuffer() => ImmutableList.CreateBuilder<TElement>();
Microsoft.Build (20)
Definition\Project.cs (1)
2550_globs = ImmutableList.CreateBuilder<IMSBuildGlob>(),
Evaluation\LazyItemEvaluator.cs (1)
259ImmutableList<I>.Builder items = ImmutableList.CreateBuilder<I>();
Evaluation\LazyItemEvaluator.IncludeOperation.cs (1)
42ImmutableList<string>.Builder excludePatterns = ImmutableList.CreateBuilder<string>();
Evaluation\LazyItemEvaluator.OrderedItemDataCollection.cs (1)
210return new Builder(ImmutableList.CreateBuilder<ItemData>());
Evaluation\LazyItemEvaluator.RemoveOperation.cs (1)
114public ImmutableList<string>.Builder MatchOnMetadata { get; } = ImmutableList.CreateBuilder<string>();
Evaluation\LazyItemEvaluator.UpdateOperation.cs (2)
52_itemsToUpdate ??= ImmutableList.CreateBuilder<ItemBatchingContext>(); 80_itemsToUpdate ??= ImmutableList.CreateBuilder<ItemBatchingContext>();
Globbing\Visitor\ParsedGlobCollector.cs (1)
10private readonly ImmutableList<MSBuildGlob>.Builder _collectedGlobs = ImmutableList.CreateBuilder<MSBuildGlob>();
Graph\ProjectGraph.cs (3)
624var entryTargets = ImmutableList.CreateRange(entryPointNode.ProjectInstance.DefaultTargets); 639var entryTargets = ImmutableList.CreateRange(entryPointNode.ProjectInstance.DefaultTargets); 666ProjectGraphBuildRequest entryEdge = new(node, ImmutableList.CreateRange(node.ProjectInstance.DefaultTargets));
Graph\ProjectInterpretation.cs (2)
494ImmutableList<TargetSpecification>.Builder targetsForOuterBuild = ImmutableList.CreateBuilder<TargetSpecification>(); 495ImmutableList<TargetSpecification>.Builder targetsForInnerBuild = ImmutableList.CreateBuilder<TargetSpecification>();
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\ImmutableSegmentedList.cs (7)
15/// <inheritdoc cref="ImmutableList.Create{T}()"/> 19/// <inheritdoc cref="ImmutableList.Create{T}(T)"/> 23/// <inheritdoc cref="ImmutableList.Create{T}(T[])"/> 27/// <inheritdoc cref="ImmutableList.CreateBuilder{T}()"/> 31/// <inheritdoc cref="ImmutableList.CreateRange{T}(IEnumerable{T})"/> 35/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(IEnumerable{TSource})"/> 44/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(ImmutableList{TSource}.Builder)"/>
Microsoft.CodeAnalysis (11)
InternalUtilities\ImmutableListExtensions.cs (4)
16return ImmutableList.Create<T>(); 19return ImmutableList.Create<T>(items); 26return ImmutableList.Create<T>(); 29return ImmutableList.CreateRange<T>(items);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (7)
15/// <inheritdoc cref="ImmutableList.Create{T}()"/> 19/// <inheritdoc cref="ImmutableList.Create{T}(T)"/> 23/// <inheritdoc cref="ImmutableList.Create{T}(T[])"/> 27/// <inheritdoc cref="ImmutableList.CreateBuilder{T}()"/> 31/// <inheritdoc cref="ImmutableList.CreateRange{T}(IEnumerable{T})"/> 35/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(IEnumerable{TSource})"/> 44/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(ImmutableList{TSource}.Builder)"/>
Microsoft.CodeAnalysis.Analyzers (11)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ImmutableListExtensions.cs (4)
16return ImmutableList.Create<T>(); 19return ImmutableList.Create<T>(items); 26return ImmutableList.Create<T>(); 29return ImmutableList.CreateRange<T>(items);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (7)
15/// <inheritdoc cref="ImmutableList.Create{T}()"/> 19/// <inheritdoc cref="ImmutableList.Create{T}(T)"/> 23/// <inheritdoc cref="ImmutableList.Create{T}(T[])"/> 27/// <inheritdoc cref="ImmutableList.CreateBuilder{T}()"/> 31/// <inheritdoc cref="ImmutableList.CreateRange{T}(IEnumerable{T})"/> 35/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(IEnumerable{TSource})"/> 44/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(ImmutableList{TSource}.Builder)"/>
Microsoft.CodeAnalysis.AnalyzerUtilities (11)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ImmutableListExtensions.cs (4)
16return ImmutableList.Create<T>(); 19return ImmutableList.Create<T>(items); 26return ImmutableList.Create<T>(); 29return ImmutableList.CreateRange<T>(items);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (7)
15/// <inheritdoc cref="ImmutableList.Create{T}()"/> 19/// <inheritdoc cref="ImmutableList.Create{T}(T)"/> 23/// <inheritdoc cref="ImmutableList.Create{T}(T[])"/> 27/// <inheritdoc cref="ImmutableList.CreateBuilder{T}()"/> 31/// <inheritdoc cref="ImmutableList.CreateRange{T}(IEnumerable{T})"/> 35/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(IEnumerable{TSource})"/> 44/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(ImmutableList{TSource}.Builder)"/>
Microsoft.CodeAnalysis.CodeStyle (11)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ImmutableListExtensions.cs (4)
16return ImmutableList.Create<T>(); 19return ImmutableList.Create<T>(items); 26return ImmutableList.Create<T>(); 29return ImmutableList.CreateRange<T>(items);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (7)
15/// <inheritdoc cref="ImmutableList.Create{T}()"/> 19/// <inheritdoc cref="ImmutableList.Create{T}(T)"/> 23/// <inheritdoc cref="ImmutableList.Create{T}(T[])"/> 27/// <inheritdoc cref="ImmutableList.CreateBuilder{T}()"/> 31/// <inheritdoc cref="ImmutableList.CreateRange{T}(IEnumerable{T})"/> 35/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(IEnumerable{TSource})"/> 44/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(ImmutableList{TSource}.Builder)"/>
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\CompletionProviders\InternalsVisibleToCompletionProvider.cs (1)
38builder ??= ImmutableList.CreateBuilder<SyntaxNode>();
Microsoft.CodeAnalysis.Extensions.Package (7)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (7)
15/// <inheritdoc cref="ImmutableList.Create{T}()"/> 19/// <inheritdoc cref="ImmutableList.Create{T}(T)"/> 23/// <inheritdoc cref="ImmutableList.Create{T}(T[])"/> 27/// <inheritdoc cref="ImmutableList.CreateBuilder{T}()"/> 31/// <inheritdoc cref="ImmutableList.CreateRange{T}(IEnumerable{T})"/> 35/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(IEnumerable{TSource})"/> 44/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(ImmutableList{TSource}.Builder)"/>
Microsoft.CodeAnalysis.ResxSourceGenerator (11)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ImmutableListExtensions.cs (4)
16return ImmutableList.Create<T>(); 19return ImmutableList.Create<T>(items); 26return ImmutableList.Create<T>(); 29return ImmutableList.CreateRange<T>(items);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (7)
15/// <inheritdoc cref="ImmutableList.Create{T}()"/> 19/// <inheritdoc cref="ImmutableList.Create{T}(T)"/> 23/// <inheritdoc cref="ImmutableList.Create{T}(T[])"/> 27/// <inheritdoc cref="ImmutableList.CreateBuilder{T}()"/> 31/// <inheritdoc cref="ImmutableList.CreateRange{T}(IEnumerable{T})"/> 35/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(IEnumerable{TSource})"/> 44/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(ImmutableList{TSource}.Builder)"/>
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Completion\CompletionProviders\InternalsVisibleToCompletionProvider.vb (1)
38builder = If(builder, ImmutableList.CreateBuilder(Of SyntaxNode)())
Microsoft.CodeAnalysis.Workspaces (13)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ImmutableListExtensions.cs (4)
16return ImmutableList.Create<T>(); 19return ImmutableList.Create<T>(items); 26return ImmutableList.Create<T>(); 29return ImmutableList.CreateRange<T>(items);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (7)
15/// <inheritdoc cref="ImmutableList.Create{T}()"/> 19/// <inheritdoc cref="ImmutableList.Create{T}(T)"/> 23/// <inheritdoc cref="ImmutableList.Create{T}(T[])"/> 27/// <inheritdoc cref="ImmutableList.CreateBuilder{T}()"/> 31/// <inheritdoc cref="ImmutableList.CreateRange{T}(IEnumerable{T})"/> 35/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(IEnumerable{TSource})"/> 44/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(ImmutableList{TSource}.Builder)"/>
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (1)
532var documentIds = ImmutableList.CreateBuilder<DocumentId>();
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
324var translationActionsBuilder = ImmutableList.CreateBuilder<TranslationAction>();
Microsoft.DotNet.Internal.DependencyInjection.Testing (2)
DependencyInjectionValidation.cs (2)
16private static readonly ImmutableList<string> s_exemptTypes = ImmutableList.Create( 28private static readonly ImmutableList<string> s_exemptNamespaces = ImmutableList.Create(
Microsoft.Extensions.AI.Abstractions.Tests (1)
test\Shared\JsonSchemaExporter\TestTypes.cs (1)
820yield return new TestData<ImmutableList<string>>(ImmutableList.Create("one", "two", "three"), """{"type":["array","null"],"items":{"type":["string","null"]}}""");
Roslyn.Diagnostics.Analyzers (11)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ImmutableListExtensions.cs (4)
16return ImmutableList.Create<T>(); 19return ImmutableList.Create<T>(items); 26return ImmutableList.Create<T>(); 29return ImmutableList.CreateRange<T>(items);
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList.cs (7)
15/// <inheritdoc cref="ImmutableList.Create{T}()"/> 19/// <inheritdoc cref="ImmutableList.Create{T}(T)"/> 23/// <inheritdoc cref="ImmutableList.Create{T}(T[])"/> 27/// <inheritdoc cref="ImmutableList.CreateBuilder{T}()"/> 31/// <inheritdoc cref="ImmutableList.CreateRange{T}(IEnumerable{T})"/> 35/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(IEnumerable{TSource})"/> 44/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(ImmutableList{TSource}.Builder)"/>
Shared.Tests (1)
JsonSchemaExporter\TestTypes.cs (1)
820yield return new TestData<ImmutableList<string>>(ImmutableList.Create("one", "two", "three"), """{"type":["array","null"],"items":{"type":["string","null"]}}""");
System.Collections.Immutable (5)
System\Collections\Immutable\IImmutableList.cs (2)
17[CollectionBuilder(typeof(ImmutableList), nameof(ImmutableList.Create))]
System\Collections\Immutable\ImmutableList_1.cs (2)
16[CollectionBuilder(typeof(ImmutableList), nameof(ImmutableList.Create))]
System\Collections\Immutable\ImmutableList_1.Node.cs (1)
1067ImmutableList.CreateRange(list) :
System.Text.Json.SourceGeneration (1)
Helpers\KnownTypeSymbols.cs (1)
322factoryTypeFullName = typeof(ImmutableList).FullName;