9 implementations of IImmutableList
Microsoft.Build.Framework (1)
Microsoft.CodeAnalysis (1)
Microsoft.CodeAnalysis.CodeStyle (1)
Microsoft.CodeAnalysis.Collections.Package (1)
Microsoft.CodeAnalysis.Workspaces (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
System.Collections.Immutable (3)
456 references to IImmutableList
Aspire.Hosting.Dapr (1)
Microsoft.AspNetCore.Components.Endpoints (5)
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Microsoft.AspNetCore.Http.Extensions (5)
Microsoft.Build.Framework (24)
Microsoft.CodeAnalysis (24)
Microsoft.CodeAnalysis.CodeStyle (24)
Microsoft.CodeAnalysis.Collections.Package (24)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
Microsoft.CodeAnalysis.CSharp.Features (3)
Microsoft.CodeAnalysis.Features (2)
Microsoft.CodeAnalysis.UnitTests (18)
Collections\ImmutableSegmentedListTest.cs (16)
110Assert.True(IsSame(empty, ((System.Collections.Immutable.IImmutableList<GenericParameterHelper>)empty).Clear()));
337System.Collections.Immutable.IImmutableList<int> collectionIface = collection;
338var modified2 = collectionIface.Remove(2, null);
369System.Collections.Immutable.IImmutableList<int> list2 = ImmutableSegmentedList<int>.Empty;
495seq => (System.Collections.Immutable.IImmutableList<int>)ImmutableSegmentedList.CreateRange(seq),
513seq => (System.Collections.Immutable.IImmutableList<int>)ImmutableSegmentedList.CreateRange(seq),
529Assert.Equal<int>(new[] { 4, 5, 8 }, System.Collections.Immutable.ImmutableList.Replace((System.Collections.Immutable.IImmutableList<int>)list, 3, 4));
530Assert.Equal<int>(new[] { 3, 6, 8 }, System.Collections.Immutable.ImmutableList.Replace((System.Collections.Immutable.IImmutableList<int>)list, 5, 6));
531Assert.Equal<int>(new[] { 3, 5, 9 }, System.Collections.Immutable.ImmutableList.Replace((System.Collections.Immutable.IImmutableList<int>)list, 8, 9));
537Assert.Equal<int>(new[] { 4, 3, 5 }, System.Collections.Immutable.ImmutableList.Replace((System.Collections.Immutable.IImmutableList<int>)list, 3, 4));
538Assert.Equal<int>(new[] { 4, 4, 5 }, System.Collections.Immutable.ImmutableList.Replace(System.Collections.Immutable.ImmutableList.Replace((System.Collections.Immutable.IImmutableList<int>)list, 3, 4), 3, 4));
554System.Collections.Immutable.IImmutableList<Person> iface = list;
555var updatedIface = System.Collections.Immutable.ImmutableList.Replace(iface, list[0], newAge);
651Assert.Equal(new[] { 2 }, System.Collections.Immutable.ImmutableList.RemoveRange((System.Collections.Immutable.IImmutableList<int>)list, new[] { 1, 3, 5 }));
660Assert.Throws<ArgumentNullException>("items", () => System.Collections.Immutable.ImmutableList.RemoveRange((System.Collections.Immutable.IImmutableList<int>)ImmutableSegmentedList.Create(1, 2, 3), null!));
661Assert.Equal(new[] { 1, 3 }, System.Collections.Immutable.ImmutableList.RemoveRange((System.Collections.Immutable.IImmutableList<int>)ImmutableSegmentedList.Create(1, 2, 3), new[] { 2 }));
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Microsoft.CodeAnalysis.Workspaces (25)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (24)
Microsoft.DotNet.Helix.Client (131)
generated-code\Aggregate.cs (60)
21IImmutableList<string> groupBy,
22IImmutableList<string> otherProperties,
32Task<IImmutableList<Models.BuildHistoryItem>> BuildHistoryAsync(
33IImmutableList<string> source,
34IImmutableList<string> type,
40IImmutableList<string> sources,
41IImmutableList<string> types,
45Task<IImmutableList<Models.AggregatedWorkItemCounts>> JobSummaryAsync(
46IImmutableList<string> groupBy,
56Task<IImmutableList<Models.AggregatedWorkItemCounts>> WorkItemSummaryAsync(
57IImmutableList<string> groupBy,
66Task<IImmutableList<Models.AggregateAnalysisDetail>> AnalysisDetailAsync(
70IImmutableList<string> groupBy,
92IImmutableList<string> groupBy,
103Task<IImmutableList<Models.HistoricalAnalysisItem>> HistoryAsync(
134IImmutableList<string> groupBy,
135IImmutableList<string> otherProperties,
146if (groupBy == default(IImmutableList<string>))
151if (otherProperties == default(IImmutableList<string>))
194if (groupBy != default(IImmutableList<string>))
201if (otherProperties != default(IImmutableList<string>))
263public async Task<IImmutableList<Models.BuildHistoryItem>> BuildHistoryAsync(
264IImmutableList<string> source,
265IImmutableList<string> type,
270if (source == default(IImmutableList<string>))
275if (type == default(IImmutableList<string>))
289if (source != default(IImmutableList<string>))
296if (type != default(IImmutableList<string>))
326var _body = Client.Deserialize<IImmutableList<Models.BuildHistoryItem>>(_content);
360IImmutableList<string> sources,
361IImmutableList<string> types,
371if (sources == default(IImmutableList<string>))
376if (types == default(IImmutableList<string>))
390if (sources != default(IImmutableList<string>))
397if (types != default(IImmutableList<string>))
463public async Task<IImmutableList<Models.AggregatedWorkItemCounts>> JobSummaryAsync(
464IImmutableList<string> groupBy,
475if (groupBy == default(IImmutableList<string>))
509if (groupBy != default(IImmutableList<string>))
543var _body = Client.Deserialize<IImmutableList<Models.AggregatedWorkItemCounts>>(_content);
575public async Task<IImmutableList<Models.AggregatedWorkItemCounts>> WorkItemSummaryAsync(
576IImmutableList<string> groupBy,
586if (groupBy == default(IImmutableList<string>))
620if (groupBy != default(IImmutableList<string>))
650var _body = Client.Deserialize<IImmutableList<Models.AggregatedWorkItemCounts>>(_content);
682public async Task<IImmutableList<Models.AggregateAnalysisDetail>> AnalysisDetailAsync(
686IImmutableList<string> groupBy,
709if (groupBy == default(IImmutableList<string>))
762if (groupBy != default(IImmutableList<string>))
792var _body = Client.Deserialize<IImmutableList<Models.AggregateAnalysisDetail>>(_content);
994IImmutableList<string> groupBy,
1006if (groupBy == default(IImmutableList<string>))
1040if (groupBy != default(IImmutableList<string>))
1110public async Task<IImmutableList<Models.HistoricalAnalysisItem>> HistoryAsync(
1198var _body = Client.Deserialize<IImmutableList<Models.HistoricalAnalysisItem>>(_content);
Microsoft.DotNet.Helix.Sdk (2)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (6)
System.Collections.Immutable (133)
System\Collections\Immutable\ImmutableList.cs (38)
100public static IImmutableList<T> Replace<T>(this IImmutableList<T> list, T oldValue, T newValue)
112public static IImmutableList<T> Remove<T>(this IImmutableList<T> list, T value)
126public static IImmutableList<T> RemoveRange<T>(this IImmutableList<T> list, IEnumerable<T> items)
134/// first occurrence within the <see cref="IImmutableList{T}"/>.
138/// The object to locate in the <see cref="IImmutableList{T}"/>. The value
143/// elements in the <see cref="IImmutableList{T}"/> that extends from index
146public static int IndexOf<T>(this IImmutableList<T> list, T item)
154/// first occurrence within the <see cref="IImmutableList{T}"/>.
158/// The object to locate in the <see cref="IImmutableList{T}"/>. The value
164/// elements in the <see cref="IImmutableList{T}"/> that extends from index
167public static int IndexOf<T>(this IImmutableList<T> list, T item, IEqualityComparer<T>? equalityComparer)
175/// first occurrence within the range of elements in the <see cref="IImmutableList{T}"/>
180/// The object to locate in the <see cref="IImmutableList{T}"/>. The value
189/// elements in the <see cref="IImmutableList{T}"/> that extends from index
192public static int IndexOf<T>(this IImmutableList<T> list, T item, int startIndex)
200/// first occurrence within the range of elements in the <see cref="IImmutableList{T}"/>
205/// The object to locate in the <see cref="IImmutableList{T}"/>. The value
217/// elements in the <see cref="IImmutableList{T}"/> that extends from index
220public static int IndexOf<T>(this IImmutableList<T> list, T item, int startIndex, int count)
228/// last occurrence within the entire <see cref="IImmutableList{T}"/>.
232/// The object to locate in the <see cref="IImmutableList{T}"/>. The value
237/// <see cref="IImmutableList{T}"/>, if found; otherwise, -1.
239public static int LastIndexOf<T>(this IImmutableList<T> list, T item)
254/// last occurrence within the entire <see cref="IImmutableList{T}"/>.
258/// The object to locate in the <see cref="IImmutableList{T}"/>. The value
264/// <see cref="IImmutableList{T}"/>, if found; otherwise, -1.
266public static int LastIndexOf<T>(this IImmutableList<T> list, T item, IEqualityComparer<T>? equalityComparer)
281/// last occurrence within the range of elements in the <see cref="IImmutableList{T}"/>
286/// The object to locate in the <see cref="IImmutableList{T}"/>. The value
294/// in the <see cref="IImmutableList{T}"/> that extends from the first element
297public static int LastIndexOf<T>(this IImmutableList<T> list, T item, int startIndex)
311/// last occurrence within the range of elements in the <see cref="IImmutableList{T}"/>
316/// The object to locate in the <see cref="IImmutableList{T}"/>. The value
327/// in the <see cref="IImmutableList{T}"/> that extends from the first element
330public static int LastIndexOf<T>(this IImmutableList<T> list, T item, int startIndex, int count)
System\Collections\Immutable\ImmutableList_1.cs (47)
49/// See the <see cref="IImmutableList{T}"/> interface.
129/// See the <see cref="IImmutableList{T}"/> interface.
135/// See the <see cref="IImmutableList{T}"/> interface.
137IImmutableList<T> IImmutableList<T>.Clear() => this.Clear();
140/// See the <see cref="IImmutableList{T}"/> interface.
205/// See the <see cref="IImmutableList{T}"/> interface.
214/// See the <see cref="IImmutableList{T}"/> interface.
232/// See the <see cref="IImmutableList{T}"/> interface.
257/// See the <see cref="IImmutableList{T}"/> interface.
266/// See the <see cref="IImmutableList{T}"/> interface.
279/// See the <see cref="IImmutableList{T}"/> interface.
284/// See the <see cref="IImmutableList{T}"/> interface.
359/// See the <see cref="IImmutableList{T}"/> interface.
387/// See the <see cref="IImmutableList{T}"/> interface.
392/// See the <see cref="IImmutableList{T}"/> interface.
397/// See the <see cref="IImmutableList{T}"/> interface.
801/// See the <see cref="IImmutableList{T}"/> interface.
806/// See the <see cref="IImmutableList{T}"/> interface.
811/// See the <see cref="IImmutableList{T}"/> interface.
813IImmutableList<T> IImmutableList<T>.Add(T value) => this.Add(value);
816/// See the <see cref="IImmutableList{T}"/> interface.
818IImmutableList<T> IImmutableList<T>.AddRange(IEnumerable<T> items) => this.AddRange(items);
826IImmutableList<T> IImmutableList<T>.Insert(int index, T item) => this.Insert(index, item);
834IImmutableList<T> IImmutableList<T>.InsertRange(int index, IEnumerable<T> items)
840/// See the <see cref="IImmutableList{T}"/> interface.
842IImmutableList<T> IImmutableList<T>.Remove(T value, IEqualityComparer<T>? equalityComparer) => this.Remove(value, equalityComparer);
845/// See the <see cref="IImmutableList{T}"/> interface.
847IImmutableList<T> IImmutableList<T>.RemoveAll(Predicate<T> match) => this.RemoveAll(match);
850/// See the <see cref="IImmutableList{T}"/> interface.
852IImmutableList<T> IImmutableList<T>.RemoveRange(IEnumerable<T> items, IEqualityComparer<T>? equalityComparer) => this.RemoveRange(items, equalityComparer);
855/// See the <see cref="IImmutableList{T}"/> interface.
857IImmutableList<T> IImmutableList<T>.RemoveRange(int index, int count) => this.RemoveRange(index, count);
864IImmutableList<T> IImmutableList<T>.RemoveAt(int index) => this.RemoveAt(index);
872IImmutableList<T> IImmutableList<T>.SetItem(int index, T value) => this.SetItem(index, value);
885IImmutableList<T> IImmutableList<T>.Replace(T oldValue, T newValue, IEqualityComparer<T>? equalityComparer) => this.Replace(oldValue, newValue, equalityComparer);
System.Text.Json.SourceGeneration (1)