5 instantiations of MutationResult
System.Collections.Immutable (5)
System\Collections\Immutable\ImmutableDictionary_2.cs (5)
940return new MutationResult(origin); 944return new MutationResult(newRoot, result == OperationResult.SizeChanged ? +1 : 0); 970return new MutationResult(newRoot, countAdjustment); 984return new MutationResult(newRoot, result == OperationResult.SizeChanged ? -1 : 0); 987return new MutationResult(origin);
17 references to MutationResult
System.Collections.Immutable (17)
System\Collections\Immutable\ImmutableDictionary_2.Builder.cs (6)
97ImmutableDictionary<TKey, TValue>.MutationResult result = ImmutableDictionary<TKey, TValue>.AddRange(this, input); 422ImmutableDictionary<TKey, TValue>.MutationResult result = ImmutableDictionary<TKey, TValue>.Add(key, value, KeyCollisionBehavior.SetValue, this.Origin); 435ImmutableDictionary<TKey, TValue>.MutationResult result = ImmutableDictionary<TKey, TValue>.AddRange(items, this.Origin); 525ImmutableDictionary<TKey, TValue>.MutationResult result = ImmutableDictionary<TKey, TValue>.Add(key, value, KeyCollisionBehavior.ThrowIfValueDifferent, this.Origin); 578ImmutableDictionary<TKey, TValue>.MutationResult result = ImmutableDictionary<TKey, TValue>.Remove(key, this.Origin); 704private bool Apply(MutationResult result)
System\Collections\Immutable\ImmutableDictionary_2.cs (8)
302ImmutableDictionary<TKey, TValue>.MutationResult result = Add(key, value, KeyCollisionBehavior.ThrowIfValueDifferent, this.Origin); 323ImmutableDictionary<TKey, TValue>.MutationResult result = Add(key, value, KeyCollisionBehavior.SetValue, this.Origin); 336ImmutableDictionary<TKey, TValue>.MutationResult result = AddRange(items, this.Origin, KeyCollisionBehavior.SetValue); 347ImmutableDictionary<TKey, TValue>.MutationResult result = Remove(key, this.Origin); 930private static MutationResult Add(TKey key, TValue value, KeyCollisionBehavior behavior, MutationInput origin) 950private static MutationResult AddRange(IEnumerable<KeyValuePair<TKey, TValue>> items, MutationInput origin, KeyCollisionBehavior collisionBehavior = KeyCollisionBehavior.ThrowIfValueDifferent) 976private static MutationResult Remove(TKey key, MutationInput origin) 1065ImmutableDictionary<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.