5 instantiations of MutationResult
System.Collections.Immutable (5)
System\Collections\Immutable\ImmutableDictionary_2.cs (5)
940
return new
MutationResult
(origin);
944
return new
MutationResult
(newRoot, result == OperationResult.SizeChanged ? +1 : 0);
970
return new
MutationResult
(newRoot, countAdjustment);
984
return new
MutationResult
(newRoot, result == OperationResult.SizeChanged ? -1 : 0);
987
return new
MutationResult
(origin);
17 references to MutationResult
System.Collections.Immutable (17)
System\Collections\Immutable\ImmutableDictionary_2.Builder.cs (6)
97
ImmutableDictionary<TKey, TValue>.
MutationResult
result = ImmutableDictionary<TKey, TValue>.AddRange(this, input);
422
ImmutableDictionary<TKey, TValue>.
MutationResult
result = ImmutableDictionary<TKey, TValue>.Add(key, value, KeyCollisionBehavior.SetValue, this.Origin);
435
ImmutableDictionary<TKey, TValue>.
MutationResult
result = ImmutableDictionary<TKey, TValue>.AddRange(items, this.Origin);
525
ImmutableDictionary<TKey, TValue>.
MutationResult
result = ImmutableDictionary<TKey, TValue>.Add(key, value, KeyCollisionBehavior.ThrowIfValueDifferent, this.Origin);
578
ImmutableDictionary<TKey, TValue>.
MutationResult
result = ImmutableDictionary<TKey, TValue>.Remove(key, this.Origin);
704
private bool Apply(
MutationResult
result)
System\Collections\Immutable\ImmutableDictionary_2.cs (8)
302
ImmutableDictionary<TKey, TValue>.
MutationResult
result = Add(key, value, KeyCollisionBehavior.ThrowIfValueDifferent, this.Origin);
323
ImmutableDictionary<TKey, TValue>.
MutationResult
result = Add(key, value, KeyCollisionBehavior.SetValue, this.Origin);
336
ImmutableDictionary<TKey, TValue>.
MutationResult
result = AddRange(items, this.Origin, KeyCollisionBehavior.SetValue);
347
ImmutableDictionary<TKey, TValue>.
MutationResult
result = Remove(key, this.Origin);
930
private static
MutationResult
Add(TKey key, TValue value, KeyCollisionBehavior behavior, MutationInput origin)
950
private static
MutationResult
AddRange(IEnumerable<KeyValuePair<TKey, TValue>> items, MutationInput origin, KeyCollisionBehavior collisionBehavior = KeyCollisionBehavior.ThrowIfValueDifferent)
976
private static
MutationResult
Remove(TKey key, MutationInput origin)
1065
ImmutableDictionary<TKey, TValue>.
MutationResult
result = AddRange(pairs, this.Origin);
System\Collections\Immutable\ImmutableDictionary_2.MutationResult.cs (3)
7
/// Contains the inner <see cref="ImmutableDictionary{TKey, TValue}.
MutationResult
"/> class.
27
/// Initializes a new instance of the <see cref="ImmutableDictionary{TKey, TValue}.
MutationResult
"/> struct.
37
/// Initializes a new instance of the <see cref="ImmutableDictionary{TKey, TValue}.
MutationResult
"/> struct.