コード例 #1
0
 /// <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;
 }
コード例 #2
0
 /// <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;
 }