/// <summary> /// Initializes a new instance of the <see cref="ImmutableDictionary{TKey, TValue}.MutationResult"/> struct. /// </summary> /// <param name="root">The root.</param> /// <param name="countAdjustment">The count adjustment.</param> internal MutationResult(SortedInt32KeyNode <HashBucket> root, int countAdjustment) { Requires.NotNull(root, nameof(root)); _root = root; _countAdjustment = countAdjustment; }
/// <summary> /// Initializes a new instance of the <see cref="ImmutableDictionary{TKey, TValue}.MutationResult"/> struct. /// </summary> /// <param name="unchangedInput">The unchanged input.</param> internal MutationResult(MutationInput unchangedInput) { _root = unchangedInput.Root; _countAdjustment = 0; }