9 instantiations of MutationResult
System.Collections.Immutable (9)
System\Collections\Immutable\ImmutableHashSet_1.cs (9)
622return new MutationResult(origin.Root, 0); 627return new MutationResult(newRoot, 1 /*result == OperationResult.SizeChanged ? 1 : 0*/); 644return new MutationResult(origin.Root, 0); 650return new MutationResult(newRoot, result == OperationResult.SizeChanged ? -1 : 0); 690return new MutationResult(newRoot, count); 713return new MutationResult(newRoot, count); 796return new MutationResult(newSet, count, CountType.FinalValue); 826return new MutationResult(newRoot, count); 860return new MutationResult(result, count, CountType.FinalValue);
29 references to MutationResult
System.Collections.Immutable (29)
System\Collections\Immutable\ImmutableHashSet_1.Builder.cs (8)
118ImmutableHashSet<T>.MutationResult result = Union(this, new MutationInput(SortedInt32KeyNode<HashBucket>.EmptyNode, value, _hashBucketEqualityComparer, 0)); 229ImmutableHashSet<T>.MutationResult result = ImmutableHashSet<T>.Add(item, this.Origin); 244ImmutableHashSet<T>.MutationResult result = ImmutableHashSet<T>.Remove(item, this.Origin); 277ImmutableHashSet<T>.MutationResult result = ImmutableHashSet<T>.Except(other, _equalityComparer, _hashBucketEqualityComparer, _root); 287ImmutableHashSet<T>.MutationResult result = ImmutableHashSet<T>.Intersect(other, this.Origin); 362ImmutableHashSet<T>.MutationResult result = ImmutableHashSet<T>.SymmetricExcept(other, this.Origin); 372ImmutableHashSet<T>.MutationResult result = ImmutableHashSet<T>.Union(other, this.Origin); 437private void Apply(MutationResult result)
System\Collections\Immutable\ImmutableHashSet_1.cs (16)
183ImmutableHashSet<T>.MutationResult result = Add(item, this.Origin); 192ImmutableHashSet<T>.MutationResult result = Remove(item, this.Origin); 246ImmutableHashSet<T>.MutationResult result = Intersect(other, this.Origin); 257ImmutableHashSet<T>.MutationResult result = Except(other, _equalityComparer, _hashBucketEqualityComparer, _root); 270ImmutableHashSet<T>.MutationResult result = SymmetricExcept(other, this.Origin); 614private static MutationResult Add(T item, MutationInput origin) 633private static MutationResult Remove(T item, MutationInput origin) 671private static MutationResult Union(IEnumerable<T> other, MutationInput origin) 696private static MutationResult Union(ReadOnlySpan<T> other, MutationInput origin) 780private static MutationResult Intersect(IEnumerable<T> other, MutationInput origin) 790ImmutableHashSet<T>.MutationResult result = Add(item, new MutationInput(newSet, origin.EqualityComparer, origin.HashBucketEqualityComparer, count)); 802private static MutationResult Except(IEnumerable<T> other, IEqualityComparer<T> equalityComparer, IEqualityComparer<HashBucket> hashBucketEqualityComparer, SortedInt32KeyNode<HashBucket> root) 832private static MutationResult SymmetricExcept(IEnumerable<T> other, MutationInput origin) 844ImmutableHashSet<T>.MutationResult mutationResult = Add(item, new MutationInput(result, origin.EqualityComparer, origin.HashBucketEqualityComparer, count)); 854ImmutableHashSet<T>.MutationResult mutationResult = Add(item, new MutationInput(result, origin.EqualityComparer, origin.HashBucketEqualityComparer, count)); 1038ImmutableHashSet<T>.MutationResult result = Union(items, this.Origin);
System\Collections\Immutable\ImmutableHashSet_1.MutationResult.cs (5)
7/// Contains the inner <see cref="ImmutableHashSet{T}.MutationResult"/> class. 12/// Interpretations for a <see cref="MutationResult.Count"/> member. 17/// The <see cref="MutationResult.Count"/> member describes an adjustment to the previous count of the collection. 22/// The <see cref="MutationResult.Count"/> member describes the actual count of the collection. 50/// Initializes a new instance of the <see cref="ImmutableHashSet{T}.MutationResult"/> struct.