4 instantiations of ImmutableSortedSet
System.Collections.Immutable (4)
151 references to ImmutableSortedSet
Microsoft.AspNetCore.Components.Endpoints (11)
Microsoft.AspNetCore.Components.Endpoints.Tests (3)
Binding\FormDataMapperTests.cs (3)
833var expected = ImmutableSortedSet.CreateRange(new[] { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 });
834CanDeserialize_Collection<ImmutableSortedSet<int>, ImmutableSortedSet<int>, int>(expected);
Microsoft.AspNetCore.Http.Extensions (11)
Microsoft.CodeAnalysis (2)
Microsoft.CodeAnalysis.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.Features (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (3)
Microsoft.CodeAnalysis.UnitTests (3)
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (7)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (3)
Microsoft.CodeAnalysis.Workspaces (5)
System.Collections.Immutable (94)
System\Collections\Immutable\ImmutableSortedSet_1.cs (32)
24public sealed partial class ImmutableSortedSet<T> : IImmutableSet<T>, IReadOnlySet<T>, IReadOnlyList<T>, IList<T>, ISet<T>, IList, IStrongEnumerable<T, ImmutableSortedSet<T>.Enumerator>
39public static readonly ImmutableSortedSet<T> Empty = new ImmutableSortedSet<T>();
52/// Initializes a new instance of the <see cref="ImmutableSortedSet{T}"/> class.
62/// Initializes a new instance of the <see cref="ImmutableSortedSet{T}"/> class.
79public ImmutableSortedSet<T> Clear()
179public ImmutableSortedSet<T> Add(T value)
187public ImmutableSortedSet<T> Remove(T value)
222public ImmutableSortedSet<T> Intersect(IEnumerable<T> other)
226ImmutableSortedSet<T> newSet = this.Clear();
242public ImmutableSortedSet<T> Except(IEnumerable<T> other)
246ImmutableSortedSet<T>.Node result = _root;
261public ImmutableSortedSet<T> SymmetricExcept(IEnumerable<T> other)
265ImmutableSortedSet<T> otherAsSet = ImmutableSortedSet.CreateRange(_comparer, other);
267ImmutableSortedSet<T> result = this.Clear();
290public ImmutableSortedSet<T> Union(IEnumerable<T> other)
294ImmutableSortedSet<T>? immutableSortedSet;
330internal ImmutableSortedSet<T> Union(ReadOnlySpan<T> other)
347public ImmutableSortedSet<T> WithComparer(IComparer<T>? comparer)
357var result = new ImmutableSortedSet<T>(Node.EmptyNode, comparer);
560/// An enumerator that iterates over the <see cref="ImmutableSortedSet{T}"/>
1002private static bool TryCastToImmutableSortedSet(IEnumerable<T> sequence, [NotNullWhen(true)] out ImmutableSortedSet<T>? other)
1004other = sequence as ImmutableSortedSet<T>;
1025private static ImmutableSortedSet<T> Wrap(Node root, IComparer<T> comparer)
1028? ImmutableSortedSet<T>.Empty.WithComparer(comparer)
1043private ImmutableSortedSet<T> UnionIncremental(IEnumerable<T> items)
1049ImmutableSortedSet<T>.Node result = _root;
1069private ImmutableSortedSet<T> UnionIncremental(ReadOnlySpan<T> items)
1073ImmutableSortedSet<T>.Node result = _root;
1087private ImmutableSortedSet<T> Wrap(Node root)
1104private ImmutableSortedSet<T> LeafToRootRefill(IEnumerable<T> addedItems)
1169private ImmutableSortedSet<T> LeafToRootRefill(ReadOnlySpan<T> addedItems)
1233/// Initializes a new instance of the <see cref="ImmutableSortedSet{T}.ReverseEnumerable"/> class.
System\Collections\Immutable\ImmutableSortedSet_1.Node.cs (11)
64/// Initializes a new instance of the <see cref="ImmutableSortedSet{T}.Node"/> class
74/// Initializes a new instance of the <see cref="ImmutableSortedSet{T}.Node"/> class
354ImmutableSortedSet<T>.Node newRight = _right!.Add(key, comparer, out mutated);
362ImmutableSortedSet<T>.Node newLeft = _left!.Add(key, comparer, out mutated);
423ImmutableSortedSet<T>.Node successor = _right;
429ImmutableSortedSet<T>.Node newRight = _right.Remove(successor._key, comparer, out _);
435ImmutableSortedSet<T>.Node newLeft = _left.Remove(key, comparer, out mutated);
443ImmutableSortedSet<T>.Node newRight = _right.Remove(key, comparer, out mutated);
566/// An enumerator that iterates over the <see cref="ImmutableSortedSet{T}"/>
591ImmutableSortedSet<T>.Node right = tree._right;
610ImmutableSortedSet<T>.Node left = tree._left;
System.Text.Json.SourceGeneration (1)
xunit.assert (2)