30 references to Empty
Aspire.Hosting (2)
DeveloperCertificateService.cs (2)
124return ImmutableList<X509Certificate2>.Empty; 132return ImmutableList<X509Certificate2>.Empty;
Aspire.Hosting.Tests (1)
ExecutionConfigurationGathererTests.cs (1)
840_certificate != null ? [_certificate] : ImmutableList<X509Certificate2>.Empty;
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
75/// <inheritdoc cref="ImmutableList{T}.Empty"/>
Microsoft.AspNetCore.App.Analyzers (1)
Infrastructure\VirtualChars\VirtualCharSequence.cs (1)
30public static readonly VirtualCharSequence Empty = Create(ImmutableList<VirtualChar>.Empty);
Microsoft.Build (3)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (1)
411var excludes = ImmutableList<string>.Empty.ToBuilder();
Graph\ProjectGraph.cs (1)
614var targetLists = ProjectNodes.ToDictionary(node => node, node => ImmutableList<string>.Empty);
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\ImmutableSegmentedList`1.cs (1)
75/// <inheritdoc cref="ImmutableList{T}.Empty"/>
Microsoft.CodeAnalysis (1)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
75/// <inheritdoc cref="ImmutableList{T}.Empty"/>
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
75/// <inheritdoc cref="ImmutableList{T}.Empty"/>
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
75/// <inheritdoc cref="ImmutableList{T}.Empty"/>
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
75/// <inheritdoc cref="ImmutableList{T}.Empty"/>
Microsoft.CodeAnalysis.Extensions.Package (1)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
75/// <inheritdoc cref="ImmutableList{T}.Empty"/>
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
75/// <inheritdoc cref="ImmutableList{T}.Empty"/>
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Completion\CompletionProviders\InternalsVisibleToCompletionProvider.vb (1)
44Return If(builder Is Nothing, ImmutableList(Of SyntaxNode).Empty, builder.ToImmutable())
Microsoft.CodeAnalysis.Workspaces (1)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
75/// <inheritdoc cref="ImmutableList{T}.Empty"/>
Microsoft.DotNet.HotReload.Watch (2)
HotReload\HotReloadDotNetWatcher.cs (2)
210var changedFilesAccumulator = ImmutableList<ChangedPath>.Empty; 422var newAccumulator = ImmutableList<ChangedPath>.Empty;
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1.cs (1)
75/// <inheritdoc cref="ImmutableList{T}.Empty"/>
System.Collections.Immutable (11)
System\Collections\Immutable\ImmutableList.cs (5)
18public static ImmutableList<T> Create<T>() => ImmutableList<T>.Empty; 26public static ImmutableList<T> Create<T>(T item) => ImmutableList<T>.Empty.Add(item); 34public static ImmutableList<T> CreateRange<T>(IEnumerable<T> items) => ImmutableList<T>.Empty.AddRange(items); 55public static ImmutableList<T> Create<T>(params ReadOnlySpan<T> items) => ImmutableList<T>.Empty.AddRange(items); 77return ImmutableList<TSource>.Empty.AddRange(source);
System\Collections\Immutable\ImmutableList_1.cs (4)
51public ImmutableList<T> Clear() => Empty; 240return Empty; 1101? ImmutableList<T>.Empty 1185return Empty;
System\Collections\Immutable\ImmutableList_1.Node.cs (2)
1052return ImmutableList<T>.Empty; 1068ImmutableList<T>.Empty;