9 instantiations of MutationResult
System.Collections.Immutable (9)
System\Collections\Immutable\ImmutableHashSet_1.cs (9)
622
return new
MutationResult
(origin.Root, 0);
627
return new
MutationResult
(newRoot, 1 /*result == OperationResult.SizeChanged ? 1 : 0*/);
644
return new
MutationResult
(origin.Root, 0);
650
return new
MutationResult
(newRoot, result == OperationResult.SizeChanged ? -1 : 0);
690
return new
MutationResult
(newRoot, count);
713
return new
MutationResult
(newRoot, count);
796
return new
MutationResult
(newSet, count, CountType.FinalValue);
826
return new
MutationResult
(newRoot, count);
860
return new
MutationResult
(result, count, CountType.FinalValue);
29 references to MutationResult
System.Collections.Immutable (29)
System\Collections\Immutable\ImmutableHashSet_1.Builder.cs (8)
118
ImmutableHashSet<T>.
MutationResult
result = Union(this, new MutationInput(SortedInt32KeyNode<HashBucket>.EmptyNode, value, _hashBucketEqualityComparer, 0));
229
ImmutableHashSet<T>.
MutationResult
result = ImmutableHashSet<T>.Add(item, this.Origin);
244
ImmutableHashSet<T>.
MutationResult
result = ImmutableHashSet<T>.Remove(item, this.Origin);
277
ImmutableHashSet<T>.
MutationResult
result = ImmutableHashSet<T>.Except(other, _equalityComparer, _hashBucketEqualityComparer, _root);
287
ImmutableHashSet<T>.
MutationResult
result = ImmutableHashSet<T>.Intersect(other, this.Origin);
362
ImmutableHashSet<T>.
MutationResult
result = ImmutableHashSet<T>.SymmetricExcept(other, this.Origin);
372
ImmutableHashSet<T>.
MutationResult
result = ImmutableHashSet<T>.Union(other, this.Origin);
437
private void Apply(
MutationResult
result)
System\Collections\Immutable\ImmutableHashSet_1.cs (16)
183
ImmutableHashSet<T>.
MutationResult
result = Add(item, this.Origin);
192
ImmutableHashSet<T>.
MutationResult
result = Remove(item, this.Origin);
246
ImmutableHashSet<T>.
MutationResult
result = Intersect(other, this.Origin);
257
ImmutableHashSet<T>.
MutationResult
result = Except(other, _equalityComparer, _hashBucketEqualityComparer, _root);
270
ImmutableHashSet<T>.
MutationResult
result = SymmetricExcept(other, this.Origin);
614
private static
MutationResult
Add(T item, MutationInput origin)
633
private static
MutationResult
Remove(T item, MutationInput origin)
671
private static
MutationResult
Union(IEnumerable<T> other, MutationInput origin)
696
private static
MutationResult
Union(ReadOnlySpan<T> other, MutationInput origin)
780
private static
MutationResult
Intersect(IEnumerable<T> other, MutationInput origin)
790
ImmutableHashSet<T>.
MutationResult
result = Add(item, new MutationInput(newSet, origin.EqualityComparer, origin.HashBucketEqualityComparer, count));
802
private static
MutationResult
Except(IEnumerable<T> other, IEqualityComparer<T> equalityComparer, IEqualityComparer<HashBucket> hashBucketEqualityComparer, SortedInt32KeyNode<HashBucket> root)
832
private static
MutationResult
SymmetricExcept(IEnumerable<T> other, MutationInput origin)
844
ImmutableHashSet<T>.
MutationResult
mutationResult = Add(item, new MutationInput(result, origin.EqualityComparer, origin.HashBucketEqualityComparer, count));
854
ImmutableHashSet<T>.
MutationResult
mutationResult = Add(item, new MutationInput(result, origin.EqualityComparer, origin.HashBucketEqualityComparer, count));
1038
ImmutableHashSet<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.