5 instantiations of ImmutableList
System.Collections.Immutable (5)
System\Collections\Immutable\ImmutableList_1.cs (5)
24public static readonly ImmutableList<T> Empty = new ImmutableList<T>(); 250return new ImmutableList<T>(Node.NodeTreeFromList(items)); 1114: new ImmutableList<T>(root); 1165return root.IsEmpty ? this.Clear() : new ImmutableList<T>(root); 1201return new ImmutableList<T>(root);
457 references to ImmutableList
Microsoft.AspNetCore.App.Analyzers (10)
Infrastructure\VirtualChars\AbstractVirtualCharService.cs (4)
190protected static int ConvertTextAtIndexToRune(string tokenText, int index, ImmutableList<VirtualChar>.Builder result, int offset) 193protected static int ConvertTextAtIndexToRune(SourceText tokenText, int index, ImmutableList<VirtualChar>.Builder result, int offset) 197T tokenText, int index, TTextInfo info, ImmutableList<VirtualChar>.Builder result, int offset) 230ImmutableList<VirtualChar>.Builder result)
Infrastructure\VirtualChars\CSharpVirtualCharService.cs (1)
314private static void ConvertCharactersToRunes(List<(char ch, TextSpan span)> charResults, ImmutableList<VirtualChar>.Builder runeResults)
Infrastructure\VirtualChars\VirtualCharSequence.Chunks.cs (3)
40private readonly ImmutableList<VirtualChar> _array; 42public ImmutableSegmentedListChunk(ImmutableList<VirtualChar> array) 77internal static int BinarySearch<TElement, TValue>(ImmutableList<TElement> array, TValue value, Func<TElement, TValue, int> comparer)
Infrastructure\VirtualChars\VirtualCharSequence.cs (2)
30public static readonly VirtualCharSequence Empty = Create(ImmutableList<VirtualChar>.Empty); 32public static VirtualCharSequence Create(ImmutableList<VirtualChar> virtualChars)
Microsoft.AspNetCore.Components.Endpoints (14)
FormMapping\Converters\CollectionAdapters\ImmutableListBufferAdapter.cs (10)
8internal sealed class ImmutableListBufferAdapter<TElement> : ICollectionBufferAdapter<ImmutableList<TElement>, ImmutableList<TElement>.Builder, TElement> 10public static ImmutableList<TElement>.Builder CreateBuffer() => ImmutableList.CreateBuilder<TElement>(); 12public static ImmutableList<TElement>.Builder Add(ref ImmutableList<TElement>.Builder buffer, TElement element) 18public static ImmutableList<TElement> ToResult(ImmutableList<TElement>.Builder buffer) => buffer.ToImmutable(); 26ImmutableList<TElement>, 28ImmutableList<TElement>.Builder, 30ImmutableList<TElement>.Builder,
FormMapping\Factories\Collections\TypedCollectionConverterFactory.cs (4)
57var _ when type == (typeof(ImmutableList<TElement>)) => true, 151var _ when type.IsAssignableTo(typeof(ImmutableList<TElement>)) => 152new CollectionConverter<ImmutableList<TElement>, ImmutableListBufferAdapter<TElement>, ImmutableList<TElement>.Builder, TElement>(elementTypeConverter),
Microsoft.AspNetCore.Components.Endpoints.Tests (5)
Binding\FormDataMapperTests.cs (5)
817var expected = ImmutableList.CreateRange(new[] { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 }); 818CanDeserialize_Collection<ImmutableList<int>, ImmutableList<int>, int>(expected); 857var expected = ImmutableList.CreateRange(new[] { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 }); 858CanDeserialize_Collection<IImmutableList<int>, ImmutableList<int>, int>(expected);
Microsoft.AspNetCore.Http.Extensions (14)
src\Components\Endpoints\src\FormMapping\Converters\CollectionAdapters\ImmutableListBufferAdapter.cs (10)
8internal sealed class ImmutableListBufferAdapter<TElement> : ICollectionBufferAdapter<ImmutableList<TElement>, ImmutableList<TElement>.Builder, TElement> 10public static ImmutableList<TElement>.Builder CreateBuffer() => ImmutableList.CreateBuilder<TElement>(); 12public static ImmutableList<TElement>.Builder Add(ref ImmutableList<TElement>.Builder buffer, TElement element) 18public static ImmutableList<TElement> ToResult(ImmutableList<TElement>.Builder buffer) => buffer.ToImmutable(); 26ImmutableList<TElement>, 28ImmutableList<TElement>.Builder, 30ImmutableList<TElement>.Builder,
src\Components\Endpoints\src\FormMapping\Factories\Collections\TypedCollectionConverterFactory.cs (4)
57var _ when type == (typeof(ImmutableList<TElement>)) => true, 151var _ when type.IsAssignableTo(typeof(ImmutableList<TElement>)) => 152new CollectionConverter<ImmutableList<TElement>, ImmutableListBufferAdapter<TElement>, ImmutableList<TElement>.Builder, TElement>(elementTypeConverter),
Microsoft.Build (50)
BackEnd\BuildManager\BuildManager.cs (4)
1962IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetsPerNode = projectGraph.GetTargetLists(submission.BuildRequestData.TargetNames); 1991static void DumpGraph(ProjectGraph graph, IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetList = null) 2006IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetsPerNode, 2036var targetList = targetsPerNode[node];
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (1)
398var excludes = ImmutableList<string>.Empty.ToBuilder();
Definition\Project.cs (1)
2535private ImmutableList<IMSBuildGlob>.Builder _globs;
Evaluation\LazyItemEvaluator.cs (2)
259public ImmutableList<I> GetMatchedItems(ImmutableHashSet<string> globsToIgnore) 261ImmutableList<I>.Builder items = ImmutableList.CreateBuilder<I>();
Evaluation\LazyItemEvaluator.IncludeOperation.cs (2)
43ImmutableList<string>.Builder excludePatterns = ImmutableList.CreateBuilder<string>(); 145private static ISet<string> BuildExcludePatternsForGlobs(ImmutableHashSet<string> globsToIgnore, ImmutableList<string>.Builder excludePatterns)
Evaluation\LazyItemEvaluator.OrderedItemDataCollection.cs (5)
30private ImmutableList<ItemData>.Builder _listBuilder; 37internal Builder(ImmutableList<ItemData>.Builder listBuilder) 44private ImmutableList<ItemData>.Enumerator GetEnumerator() => _listBuilder.GetEnumerator(); 199private ImmutableList<ItemData> _list; 201private OrderedItemDataCollection(ImmutableList<ItemData> list)
Evaluation\LazyItemEvaluator.RemoveOperation.cs (2)
19private readonly ImmutableList<string> _matchOnMetadata; 114public ImmutableList<string>.Builder MatchOnMetadata { get; } = ImmutableList.CreateBuilder<string>();
Evaluation\LazyItemEvaluator.UpdateOperation.cs (1)
20private ImmutableList<ItemBatchingContext>.Builder _itemsToUpdate = null;
Globbing\Visitor\ParsedGlobCollector.cs (2)
12private readonly ImmutableList<MSBuildGlob>.Builder _collectedGlobs = ImmutableList.CreateBuilder<MSBuildGlob>(); 13public ImmutableList<MSBuildGlob> CollectedGlobs => _collectedGlobs.ToImmutable();
Graph\ProjectGraph.cs (16)
491internal string ToDot(IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetsPerNode = null) 499IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetsPerNode = null) 609public IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> GetTargetLists(ICollection<string> entryProjectTargets) 614var targetLists = ProjectNodes.ToDictionary(node => node, node => ImmutableList<string>.Empty); 624var entryTargets = ImmutableList.CreateRange(entryPointNode.ProjectInstance.DefaultTargets); 639var entryTargets = ImmutableList.CreateRange(entryPointNode.ProjectInstance.DefaultTargets); 712var requestedTargets = buildRequest.RequestedTargets; 728var applicableTargets = targetsToPropagate.GetApplicableTargetsForReference(referenceNode); 735var expandedTargets = ExpandDefaultTargets( 752var entriesToUpdate = new List<KeyValuePair<ProjectGraphNode, ImmutableList<string>>>(); 755var targetList = pair.Value; 774entriesToUpdate.Add(new KeyValuePair<ProjectGraphNode, ImmutableList<string>>(pair.Key, targetList)); 800private static ImmutableList<string> ExpandDefaultTargets(ImmutableList<string> targets, List<string> defaultTargets, ProjectItemInstance graphEdge) 866public ProjectGraphBuildRequest(ProjectGraphNode node, ImmutableList<string> targets) 874public ImmutableList<string> RequestedTargets { get; }
Graph\ProjectInterpretation.cs (14)
51private static readonly ImmutableList<GlobalPropertiesModifier> ModifierForNonMultitargetingNodes = new[] { (GlobalPropertiesModifier)ProjectReferenceGlobalPropertiesModifier }.ToImmutableList(); 319var newUndefineProperties = defaultParts.UndefineProperties; 351public ImmutableList<string> UndefineProperties { get; } 356ImmutableList<string> undefineProperties) 473private readonly ImmutableList<TargetSpecification> _outerBuildTargets; 474private readonly ImmutableList<TargetSpecification> _allTargets; 476private TargetsToPropagate(ImmutableList<TargetSpecification> outerBuildTargets, ImmutableList<TargetSpecification> nonOuterBuildTargets) 496public static TargetsToPropagate FromProjectAndEntryTargets(ProjectInstance project, ImmutableList<string> entryTargets) 498ImmutableList<TargetSpecification>.Builder targetsForOuterBuild = ImmutableList.CreateBuilder<TargetSpecification>(); 499ImmutableList<TargetSpecification>.Builder targetsForInnerBuild = ImmutableList.CreateBuilder<TargetSpecification>(); 529public ImmutableList<string> GetApplicableTargetsForReference(ProjectGraphNode projectGraphNode) 531ImmutableList<string> RemoveNonexistentTargetsIfSkippable(ImmutableList<TargetSpecification> targets)
Microsoft.Build.Engine.UnitTests (25)
Graph\ProjectGraph_Tests.cs (24)
927IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(new[] { "A" }); 955IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(new[] { "A" }); 986IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(new[] { "A" }); 1008IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(null); 1026IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(new[] { "Foo" }); 1049IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(null); 1072IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(new[] { "A" }); 1115IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(new List<string> { "A" }); 1156IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(new List<string> { "A" }); 1190IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(new List<string> { "A" }); 1261IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = graph.GetTargetLists(new[] { "A" }); 1362IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(new List<string> { "A" }); 1375void AssertMultitargetingNode(int projectNumber, ProjectGraph projectGraph, IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists, string[] outerBuildTargets, string[] nonOuterBuildTargets) 1397IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(null); 1420IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(null); 1450IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(null); 1507IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(entryProjectTargets: null); 1552IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = graph.GetTargetLists(entryProjectTargets: new[] { "Build" }); 1602IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = graph.GetTargetLists(entryProjectTargets: new[] { "Build" }); 1633IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = graph.GetTargetLists(null); 2696IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = graph.GetTargetLists(Array.Empty<string>()); 2738IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = graph.GetTargetLists(Array.Empty<string>()); 2797IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = graph.GetTargetLists(Array.Empty<string>()); 2877IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetLists = projectGraph.GetTargetLists(entryTargets);
Graph\ResultCacheBasedBuilds_Tests.cs (1)
432IReadOnlyDictionary<ProjectGraphNode, ImmutableList<string>> targetListsPerNode = null,
Microsoft.Build.Framework (87)
ImmutableSegmentedDictionary`2.cs (1)
23/// <see cref="ImmutableList{T}"/> is applicable.</para>
ImmutableSegmentedList.cs (1)
42/// <inheritdoc cref="ImmutableList.ToImmutableList{TSource}(ImmutableList{TSource}.Builder)"/>
ImmutableSegmentedList`1.cs (47)
19/// best for <see cref="ImmutableList{T}"/>.</para> 28/// <description><see cref="ImmutableList{T}"/> Complexity</description> 73/// <inheritdoc cref="ImmutableList{T}.Empty"/> 85/// <inheritdoc cref="ImmutableList{T}.IsEmpty"/> 124/// <inheritdoc cref="ImmutableList{T}.ItemRef(int)"/> 138/// <inheritdoc cref="ImmutableList{T}.Add(T)"/> 158/// <inheritdoc cref="ImmutableList{T}.AddRange(IEnumerable{T})"/> 186/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T)"/> 190/// <inheritdoc cref="ImmutableList{T}.BinarySearch(T, IComparer{T}?)"/> 194/// <inheritdoc cref="ImmutableList{T}.BinarySearch(int, int, T, IComparer{T}?)"/> 198/// <inheritdoc cref="ImmutableList{T}.Clear()"/> 205/// <inheritdoc cref="ImmutableList{T}.ConvertAll{TOutput}(Func{T, TOutput})"/> 209/// <inheritdoc cref="ImmutableList{T}.CopyTo(T[])"/> 216/// <inheritdoc cref="ImmutableList{T}.CopyTo(int, T[], int, int)"/> 220/// <inheritdoc cref="ImmutableList{T}.Exists(Predicate{T})"/> 224/// <inheritdoc cref="ImmutableList{T}.Find(Predicate{T})"/> 228/// <inheritdoc cref="ImmutableList{T}.FindAll(Predicate{T})"/> 232/// <inheritdoc cref="ImmutableList{T}.FindIndex(Predicate{T})"/> 236/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, Predicate{T})"/> 240/// <inheritdoc cref="ImmutableList{T}.FindIndex(int, int, Predicate{T})"/> 244/// <inheritdoc cref="ImmutableList{T}.FindLast(Predicate{T})"/> 248/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(Predicate{T})"/> 252/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, Predicate{T})"/> 267/// <inheritdoc cref="ImmutableList{T}.FindLastIndex(int, int, Predicate{T})"/> 282/// <inheritdoc cref="ImmutableList{T}.ForEach(Action{T})"/> 286/// <inheritdoc cref="ImmutableList{T}.GetEnumerator()"/> 290/// <inheritdoc cref="ImmutableList{T}.GetRange(int, int)"/> 307/// <inheritdoc cref="ImmutableList{T}.Insert(int, T)"/> 322/// <inheritdoc cref="ImmutableList{T}.InsertRange(int, IEnumerable{T})"/> 358/// <inheritdoc cref="ImmutableList{T}.Remove(T)"/> 370/// <inheritdoc cref="ImmutableList{T}.Remove(T, IEqualityComparer{T}?)"/> 382/// <inheritdoc cref="ImmutableList{T}.RemoveAll(Predicate{T})"/> 392/// <inheritdoc cref="ImmutableList{T}.RemoveAt(int)"/> 401/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T})"/> 425/// <inheritdoc cref="ImmutableList{T}.RemoveRange(IEnumerable{T}, IEqualityComparer{T}?)"/> 449/// <inheritdoc cref="ImmutableList{T}.RemoveRange(int, int)"/> 465/// <inheritdoc cref="ImmutableList{T}.Replace(T, T)"/> 479/// <inheritdoc cref="ImmutableList{T}.Replace(T, T, IEqualityComparer{T}?)"/> 493/// <inheritdoc cref="ImmutableList{T}.Reverse()"/> 505/// <inheritdoc cref="ImmutableList{T}.Reverse(int, int)"/> 513/// <inheritdoc cref="ImmutableList{T}.SetItem(int, T)"/> 522/// <inheritdoc cref="ImmutableList{T}.Sort()"/> 536/// <inheritdoc cref="ImmutableList{T}.Sort(IComparer{T}?)"/> 550/// <inheritdoc cref="ImmutableList{T}.Sort(Comparison{T})"/> 569/// <inheritdoc cref="ImmutableList{T}.Sort(int, int, IComparer{T}?)"/> 578/// <inheritdoc cref="ImmutableList{T}.ToBuilder()"/> 597/// <inheritdoc cref="ImmutableList{T}.TrueForAll(Predicate{T})"/>
ImmutableSegmentedList`1+Builder.cs (38)
48/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ItemRef(int)"/> 55/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.AddRange(IEnumerable{T})"/> 59/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T)"/> 63/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(T, IComparer{T}?)"/> 67/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.BinarySearch(int, int, T, IComparer{T}?)"/> 77/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ConvertAll{TOutput}(Func{T, TOutput})"/> 81/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(T[])"/> 88/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.CopyTo(int, T[], int, int)"/> 92/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Exists(Predicate{T})"/> 96/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Find(Predicate{T})"/> 100/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindAll(Predicate{T})"/> 104/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(Predicate{T})"/> 108/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, Predicate{T})"/> 112/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindIndex(int, int, Predicate{T})"/> 116/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLast(Predicate{T})"/> 120/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(Predicate{T})"/> 124/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, Predicate{T})"/> 128/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.FindLastIndex(int, int, Predicate{T})"/> 132/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ForEach(Action{T})"/> 136/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetEnumerator()"/> 140/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.GetRange(int, int)"/> 147/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int)"/> 151/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int)"/> 155/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.IndexOf(T, int, int, IEqualityComparer{T}?)"/> 162/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.InsertRange(int, IEnumerable{T})"/> 166/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T)"/> 170/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int)"/> 174/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int)"/> 178/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.LastIndexOf(T, int, int, IEqualityComparer{T}?)"/> 185/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.RemoveAll(Predicate{T})"/> 192/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse()"/> 196/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Reverse(int, int)"/> 200/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort()"/> 204/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(IComparer{T}?)"/> 208/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(Comparison{T})"/> 212/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.Sort(int, int, IComparer{T}?)"/> 216/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.ToImmutable()"/> 220/// <inheritdoc cref="System.Collections.Immutable.ImmutableList{T}.Builder.TrueForAll(Predicate{T})"/>
Microsoft.DotNet.Build.Tasks.Feed (9)
src\model\SetupTargetFeedConfigV3.cs (3)
27private ImmutableList<string> FilesToExclude { get; } 50ImmutableList<string> filesToExclude = null, 60FilesToExclude = filesToExclude ?? ImmutableList<string>.Empty;
src\model\TargetChannelConfig.cs (4)
36public ImmutableList<TargetFeedSpecification> TargetFeeds { get; } 45public ImmutableList<string> FilenamesToExclude { get; } 65FilenamesToExclude = filenamesToExclude?.ToImmutableList() ?? ImmutableList<string>.Empty; 145public ImmutableList<TargetFeedContentType> ContentTypes { get; }
src\model\TargetFeedConfig.cs (2)
61public ImmutableList<string> FilenamesToExclude { get; } 88FilenamesToExclude = filenamesToExclude?.ToImmutableList() ?? ImmutableList<string>.Empty;
Microsoft.DotNet.Build.Tasks.Feed.Tests (1)
SetupTargetFeedConfigV3Tests.cs (1)
37private static ImmutableList<string> FilesToExclude = ImmutableList.Create(
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.DotNet.SwaggerGenerator.CodeGenerator (1)
Modeler\ServiceClientModelFactory.cs (1)
124ImmutableList<MethodGroupModel> methodGroups = document.Paths
System.Collections.Immutable (238)
System\Collections\Immutable\IImmutableList.cs (6)
27/// first occurrence within the range of elements in the <see cref="ImmutableList{T}"/> 31/// The object to locate in the <see cref="ImmutableList{T}"/>. The value 47/// elements in the <see cref="ImmutableList{T}"/> that starts at index and 54/// last occurrence within the range of elements in the <see cref="ImmutableList{T}"/> 59/// The object to locate in the <see cref="ImmutableList{T}"/>. The value 70/// in the <see cref="ImmutableList{T}"/> that contains <paramref name="count"/> number of elements
System\Collections\Immutable\IImmutableListQueries.cs (32)
10/// An interface that describes the methods that the <see cref="ImmutableList{T}"/> and <see cref="ImmutableList{T}.Builder"/> types have in common. 16/// Converts the elements in the current <see cref="ImmutableList{T}"/> to 27/// A <see cref="ImmutableList{T}"/> of the target type containing the converted 28/// elements from the current <see cref="ImmutableList{T}"/>. 30ImmutableList<TOutput> ConvertAll<TOutput>(Func<T, TOutput> converter); 39/// Creates a shallow copy of a range of elements in the source <see cref="ImmutableList{T}"/>. 42/// The zero-based <see cref="ImmutableList{T}"/> index at which the range 49/// A shallow copy of a range of elements in the source <see cref="ImmutableList{T}"/>. 51ImmutableList<T> GetRange(int index, int count); 54/// Copies the entire <see cref="ImmutableList{T}"/> to a compatible one-dimensional 59/// copied from <see cref="ImmutableList{T}"/>. The <see cref="Array"/> must have 65/// Copies the entire <see cref="ImmutableList{T}"/> to a compatible one-dimensional 70/// copied from <see cref="ImmutableList{T}"/>. The <see cref="Array"/> must have 79/// Copies a range of elements from the <see cref="ImmutableList{T}"/> to 84/// The zero-based index in the source <see cref="ImmutableList{T}"/> at 89/// copied from <see cref="ImmutableList{T}"/>. The <see cref="Array"/> must have 97/// Determines whether the <see cref="ImmutableList{T}"/> contains elements 105/// true if the <see cref="ImmutableList{T}"/> contains one or more elements 113/// predicate, and returns the first occurrence within the entire <see cref="ImmutableList{T}"/>. 134/// A <see cref="ImmutableList{T}"/> containing all the elements that match 136/// empty <see cref="ImmutableList{T}"/>. 138ImmutableList<T> FindAll(Predicate<T> match); 143/// the entire <see cref="ImmutableList{T}"/>. 158/// the range of elements in the <see cref="ImmutableList{T}"/> that extends 172/// the range of elements in the <see cref="ImmutableList{T}"/> that starts 186/// predicate, and returns the last occurrence within the entire <see cref="ImmutableList{T}"/>. 201/// the entire <see cref="ImmutableList{T}"/>. 216/// the range of elements in the <see cref="ImmutableList{T}"/> that extends 231/// the range of elements in the <see cref="ImmutableList{T}"/> that contains 247/// Determines whether every element in the <see cref="ImmutableList{T}"/> 255/// true if every element in the <see cref="ImmutableList{T}"/> matches the
System\Collections\Immutable\ImmutableDictionary_2.HashBucket.cs (7)
34private readonly ImmutableList<KeyValuePair<TKey, TValue>>.Node _additionalElements; 41private HashBucket(KeyValuePair<TKey, TValue> firstElement, ImmutableList<KeyValuePair<TKey, TValue>>.Node? additionalElements = null) 44_additionalElements = additionalElements ?? ImmutableList<KeyValuePair<TKey, TValue>>.Node.EmptyNode; 77internal ImmutableList<KeyValuePair<TKey, TValue>>.Node AdditionalElements 351private ImmutableList<KeyValuePair<TKey, TValue>>.Enumerator _additionalEnumerator; 361_additionalEnumerator = default(ImmutableList<KeyValuePair<TKey, TValue>>.Enumerator); 442_additionalEnumerator = new ImmutableList<KeyValuePair<TKey, TValue>>.Enumerator(_bucket._additionalElements);
System\Collections\Immutable\ImmutableHashSet_1.HashBucket.cs (6)
49private readonly ImmutableList<T>.Node _additionalElements; 56private HashBucket(T firstElement, ImmutableList<T>.Node? additionalElements = null) 59_additionalElements = additionalElements ?? ImmutableList<T>.Node.EmptyNode; 271private ImmutableList<T>.Enumerator _additionalEnumerator; 282_additionalEnumerator = default(ImmutableList<T>.Enumerator); 365_additionalEnumerator = new ImmutableList<T>.Enumerator(_bucket._additionalElements);
System\Collections\Immutable\ImmutableList.cs (16)
9/// A set of initialization methods for instances of <see cref="ImmutableList{T}"/>. 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); 42public static ImmutableList<T> Create<T>(params T[] items) 55public static ImmutableList<T> Create<T>(/*params*/ ReadOnlySpan<T> items) => ImmutableList<T>.Empty.AddRange(items); 62public static ImmutableList<T>.Builder CreateBuilder<T>() => Create<T>().ToBuilder(); 70public static ImmutableList<TSource> ToImmutableList<TSource>(this IEnumerable<TSource> source) 72if (source is ImmutableList<TSource> existingList) 77return ImmutableList<TSource>.Empty.AddRange(source); 85public static ImmutableList<TSource> ToImmutableList<TSource>(this ImmutableList<TSource>.Builder builder)
System\Collections\Immutable\ImmutableList_1.Builder.cs (13)
42private ImmutableList<T>? _immutable; 58internal Builder(ImmutableList<T> list) 202this.Root = ImmutableList<T>.Node.EmptyNode; 234public ImmutableList<T>.Enumerator GetEnumerator() 335public ImmutableList<T> GetRange(int index, int count) 340return ImmutableList<T>.WrapNode(Node.NodeTreeFromList(this, index, count)); 358public ImmutableList<TOutput> ConvertAll<TOutput>(Func<T, TOutput> converter) 361return ImmutableList<TOutput>.WrapNode(_root.ConvertAll(converter)); 406public ImmutableList<T> FindAll(Predicate<T> match) => _root.FindAll(match); 1022public ImmutableList<T> ToImmutable() 1027return _immutable ??= ImmutableList<T>.WrapNode(this.Root); 1197private readonly ImmutableList<T>.Builder _list; 1208public ImmutableListBuilderDebuggerProxy(ImmutableList<T>.Builder builder)
System\Collections\Immutable\ImmutableList_1.cs (93)
19public sealed partial class ImmutableList<T> : IImmutableList<T>, IList<T>, IList, IOrderedCollection<T>, IImmutableListQueries<T>, IStrongEnumerable<T, ImmutableList<T>.Enumerator> 24public static readonly ImmutableList<T> Empty = new ImmutableList<T>(); 32/// Initializes a new instance of the <see cref="ImmutableList{T}"/> class. 37/// Initializes a new instance of the <see cref="ImmutableList{T}"/> class. 51public ImmutableList<T> Clear() => Empty; 54/// Searches the entire sorted <see cref="ImmutableList{T}"/> for an element 59/// The zero-based index of item in the sorted <see cref="ImmutableList{T}"/>, 62/// no larger element, the bitwise complement of <see cref="ImmutableList{T}.Count"/>. 72/// Searches the entire sorted <see cref="ImmutableList{T}"/> for an element 81/// The zero-based index of item in the sorted <see cref="ImmutableList{T}"/>, 84/// no larger element, the bitwise complement of <see cref="ImmutableList{T}.Count"/>. 94/// Searches a range of elements in the sorted <see cref="ImmutableList{T}"/> 106/// The zero-based index of item in the sorted <see cref="ImmutableList{T}"/>, 109/// no larger element, the bitwise complement of <see cref="ImmutableList{T}.Count"/>. 115/// <paramref name="index"/> and <paramref name="count"/> do not denote a valid range in the <see cref="ImmutableList{T}"/>. 214public ImmutableList<T> Add(T value) 216ImmutableList<T>.Node result = _root.Add(value); 223public ImmutableList<T> AddRange(IEnumerable<T> items) 233ImmutableList<T>.Node result = _root.AddRange(items); 241internal ImmutableList<T> AddRange(ReadOnlySpan<T> items) 266public ImmutableList<T> Insert(int index, T item) 275public ImmutableList<T> InsertRange(int index, IEnumerable<T> items) 280ImmutableList<T>.Node result = _root.InsertRange(index, items); 288public ImmutableList<T> Remove(T value) => this.Remove(value, EqualityComparer<T>.Default); 293public ImmutableList<T> Remove(T value, IEqualityComparer<T>? equalityComparer) 305public ImmutableList<T> RemoveRange(int index, int count) 310ImmutableList<T>.Node result = _root; 327public ImmutableList<T> RemoveRange(IEnumerable<T> items) => this.RemoveRange(items, EqualityComparer<T>.Default); 340public ImmutableList<T> RemoveRange(IEnumerable<T> items, IEqualityComparer<T>? equalityComparer) 352ImmutableList<T>.Node result = _root; 368public ImmutableList<T> RemoveAt(int index) 371ImmutableList<T>.Node result = _root.RemoveAt(index); 386public ImmutableList<T> RemoveAll(Predicate<T> match) 396public ImmutableList<T> SetItem(int index, T value) => this.Wrap(_root.ReplaceAt(index, value)); 401public ImmutableList<T> Replace(T oldValue, T newValue) => this.Replace(oldValue, newValue, EqualityComparer<T>.Default); 406public ImmutableList<T> Replace(T oldValue, T newValue, IEqualityComparer<T>? equalityComparer) 418/// Reverses the order of the elements in the entire <see cref="ImmutableList{T}"/>. 421public ImmutableList<T> Reverse() => this.Wrap(_root.Reverse()); 429public ImmutableList<T> Reverse(int index, int count) => this.Wrap(_root.Reverse(index, count)); 432/// Sorts the elements in the entire <see cref="ImmutableList{T}"/> using 435public ImmutableList<T> Sort() => this.Wrap(_root.Sort()); 438/// Sorts the elements in the entire <see cref="ImmutableList{T}"/> using 446public ImmutableList<T> Sort(Comparison<T> comparison) 453/// Sorts the elements in the entire <see cref="ImmutableList{T}"/> using 461public ImmutableList<T> Sort(IComparer<T>? comparer) => this.Wrap(_root.Sort(comparer)); 464/// Sorts the elements in a range of elements in <see cref="ImmutableList{T}"/> 478public ImmutableList<T> Sort(int index, int count, IComparer<T>? comparer) 506/// Copies the entire <see cref="ImmutableList{T}"/> to a compatible one-dimensional 511/// copied from <see cref="ImmutableList{T}"/>. The <see cref="Array"/> must have 517/// Copies the entire <see cref="ImmutableList{T}"/> to a compatible one-dimensional 522/// copied from <see cref="ImmutableList{T}"/>. The <see cref="Array"/> must have 531/// Copies a range of elements from the <see cref="ImmutableList{T}"/> to 536/// The zero-based index in the source <see cref="ImmutableList{T}"/> at 541/// copied from <see cref="ImmutableList{T}"/>. The <see cref="Array"/> must have 549/// Creates a shallow copy of a range of elements in the source <see cref="ImmutableList{T}"/>. 552/// The zero-based <see cref="ImmutableList{T}"/> index at which the range 559/// A shallow copy of a range of elements in the source <see cref="ImmutableList{T}"/>. 561public ImmutableList<T> GetRange(int index, int count) 570/// Converts the elements in the current <see cref="ImmutableList{T}"/> to 581/// A <see cref="ImmutableList{T}"/> of the target type containing the converted 582/// elements from the current <see cref="ImmutableList{T}"/>. 584public ImmutableList<TOutput> ConvertAll<TOutput>(Func<T, TOutput> converter) 587return ImmutableList<TOutput>.WrapNode(_root.ConvertAll(converter)); 591/// Determines whether the <see cref="ImmutableList{T}"/> contains elements 599/// true if the <see cref="ImmutableList{T}"/> contains one or more elements 607/// predicate, and returns the first occurrence within the entire <see cref="ImmutableList{T}"/>. 628/// A <see cref="ImmutableList{T}"/> containing all the elements that match 630/// empty <see cref="ImmutableList{T}"/>. 632public ImmutableList<T> FindAll(Predicate<T> match) => _root.FindAll(match); 637/// the entire <see cref="ImmutableList{T}"/>. 652/// the range of elements in the <see cref="ImmutableList{T}"/> that extends 666/// the range of elements in the <see cref="ImmutableList{T}"/> that starts 680/// predicate, and returns the last occurrence within the entire <see cref="ImmutableList{T}"/>. 695/// the entire <see cref="ImmutableList{T}"/>. 710/// the range of elements in the <see cref="ImmutableList{T}"/> that extends 725/// the range of elements in the <see cref="ImmutableList{T}"/> that contains 742/// first occurrence within the range of elements in the <see cref="ImmutableList{T}"/> 746/// The object to locate in the <see cref="ImmutableList{T}"/>. The value 761/// elements in the <see cref="ImmutableList{T}"/> that starts at <paramref name="index"/> and 768/// last occurrence within the range of elements in the <see cref="ImmutableList{T}"/> 773/// The object to locate in the <see cref="ImmutableList{T}"/>. The value 783/// in the <see cref="ImmutableList{T}"/> that contains <paramref name="count"/> number of elements 789/// Determines whether every element in the <see cref="ImmutableList{T}"/> 797/// true if every element in the <see cref="ImmutableList{T}"/> matches the 1110private static ImmutableList<T> WrapNode(Node root) 1113? ImmutableList<T>.Empty 1118/// Attempts to discover an <see cref="ImmutableList{T}"/> instance beneath some enumerable sequence 1122/// <param name="other">Receives the concrete <see cref="ImmutableList{T}"/> typed value if one can be found.</param> 1124private static bool TryCastToImmutableList(IEnumerable<T> sequence, [NotNullWhen(true)] out ImmutableList<T>? other) 1126other = sequence as ImmutableList<T>; 1161private ImmutableList<T> Wrap(Node root) 1178private static ImmutableList<T> CreateRange(IEnumerable<T> items) 1182if (TryCastToImmutableList(items, out ImmutableList<T>? other))
System\Collections\Immutable\ImmutableList_1.Enumerator.cs (5)
17/// <see cref="ImmutableList{T}.Enumerator"/>, <see cref="ImmutableSortedDictionary{TKey, TValue}.Enumerator"/>, and <see cref="ImmutableSortedSet{T}.Enumerator"/>. 168Stack<RefAsValueType<ImmutableList<T>.Node>> stack = _stack.Use(ref this); 202Stack<RefAsValueType<ImmutableList<T>.Node>> stack = _stack.Use(ref this); 205ImmutableList<T>.Node node = _root; 276Stack<RefAsValueType<ImmutableList<T>.Node>> stack = _stack.Use(ref this);
System\Collections\Immutable\ImmutableList_1.Node.cs (57)
65/// Initializes a new instance of the <see cref="ImmutableList{T}.Node"/> class 75/// Initializes a new instance of the <see cref="ImmutableList{T}.Node"/> class 445ImmutableList<T>.Node successor = _right; 451ImmutableList<T>.Node newRight = _right.RemoveAt(0); 457ImmutableList<T>.Node newLeft = _left.RemoveAt(index); 462ImmutableList<T>.Node newRight = _right.RemoveAt(index - _left._count - 1); 484ImmutableList<T>.Node result = this; 531ImmutableList<T>.Node newLeft = _left.ReplaceAt(index, value); 536ImmutableList<T>.Node newRight = _right!.ReplaceAt(index - _left._count - 1, value); 544/// Reverses the order of the elements in the entire <see cref="ImmutableList{T}"/>. 579/// Sorts the elements in the entire <see cref="ImmutableList{T}"/> using 585/// Sorts the elements in the entire <see cref="ImmutableList{T}"/> using 604/// Sorts the elements in the entire <see cref="ImmutableList{T}"/> using 615/// Sorts the elements in a range of elements in <see cref="ImmutableList{T}"/> 643/// Searches a range of elements in the sorted <see cref="ImmutableList{T}"/> 655/// The zero-based index of item in the sorted <see cref="ImmutableList{T}"/>, 658/// no larger element, the bitwise complement of <see cref="ImmutableList{T}.Count"/>. 664/// <paramref name="index"/> and <paramref name="count"/> do not denote a valid range in the <see cref="ImmutableList{T}"/>. 726/// first occurrence within the range of elements in the <see cref="ImmutableList{T}"/> 730/// The object to locate in the <see cref="ImmutableList{T}"/>. The value 736/// <see cref="ImmutableList{T}"/>, if found; otherwise, -1. 744/// The object to locate in the <see cref="ImmutableList{T}"/>. The value 757/// first occurrence within the range of elements in the <see cref="ImmutableList{T}"/> 761/// The object to locate in the <see cref="ImmutableList{T}"/>. The value 777/// elements in the <see cref="ImmutableList{T}"/> that starts at <paramref name="index"/> and 806/// last occurrence within the range of elements in the <see cref="ImmutableList{T}"/> 811/// The object to locate in the <see cref="ImmutableList{T}"/>. The value 819/// in the <see cref="ImmutableList{T}"/> that contains <paramref name="count"/> number of elements 846/// Copies the entire <see cref="ImmutableList{T}"/> to a compatible one-dimensional 851/// copied from <see cref="ImmutableList{T}"/>. The <see cref="Array"/> must have 867/// Copies the entire <see cref="ImmutableList{T}"/> to a compatible one-dimensional 872/// copied from <see cref="ImmutableList{T}"/>. The <see cref="Array"/> must have 891/// Copies a range of elements from the <see cref="ImmutableList{T}"/> to 896/// The zero-based index in the source <see cref="ImmutableList{T}"/> at 901/// copied from <see cref="ImmutableList{T}"/>. The <see cref="Array"/> must have 942/// Converts the elements in the current <see cref="ImmutableList{T}"/> to 955internal ImmutableList<TOutput>.Node ConvertAll<TOutput>(Func<T, TOutput> converter) 957ImmutableList<TOutput>.Node root = ImmutableList<TOutput>.Node.EmptyNode; 968/// Determines whether every element in the <see cref="ImmutableList{T}"/> 976/// true if every element in the <see cref="ImmutableList{T}"/> matches the 996/// Determines whether the <see cref="ImmutableList{T}"/> contains elements 1004/// true if the <see cref="ImmutableList{T}"/> contains one or more elements 1025/// predicate, and returns the first occurrence within the entire <see cref="ImmutableList{T}"/>. 1059/// A <see cref="ImmutableList{T}"/> containing all the elements that match 1061/// empty <see cref="ImmutableList{T}"/>. 1063internal ImmutableList<T> FindAll(Predicate<T> match) 1069return ImmutableList<T>.Empty; 1085ImmutableList<T>.Empty; 1091/// the entire <see cref="ImmutableList{T}"/>. 1111/// the range of elements in the <see cref="ImmutableList{T}"/> that extends 1131/// the range of elements in the <see cref="ImmutableList{T}"/> that starts 1167/// predicate, and returns the last occurrence within the entire <see cref="ImmutableList{T}"/>. 1198/// the entire <see cref="ImmutableList{T}"/>. 1218/// the range of elements in the <see cref="ImmutableList{T}"/> that extends 1240/// the range of elements in the <see cref="ImmutableList{T}"/> that contains 1575ImmutableList<T>? other;
System\Collections\Immutable\ImmutableSortedDictionary_2.Enumerator.cs (1)
17/// <see cref="ImmutableList{T}.Enumerator"/>, <see cref="ImmutableSortedDictionary{TKey, TValue}.Enumerator"/>, and <see cref="ImmutableSortedSet{T}.Enumerator"/>.
System\Collections\Immutable\ImmutableSortedSet_1.Enumerator.cs (1)
16/// <see cref="ImmutableList{T}.Enumerator"/>, <see cref="ImmutableSortedDictionary{TKey, TValue}.Enumerator"/>, and <see cref="ImmutableSortedSet{T}.Enumerator"/>.
System\Collections\Immutable\SortedInt32KeyNode.Enumerator.cs (1)
16/// <see cref="ImmutableList{T}.Enumerator"/>, <see cref="ImmutableSortedDictionary{TKey, TValue}.Enumerator"/>, and <see cref="ImmutableSortedSet{T}.Enumerator"/>.
System.Text.Json.SourceGeneration (1)
Helpers\KnownTypeSymbols.cs (1)
85public INamedTypeSymbol? ImmutableListType => GetOrResolveType(typeof(ImmutableList<>), ref _ImmutableListType);