|
433 | 433 | <Parameter Name="valueFactory" Type="System.Func<TKey,TValue>" Index="1" FrameworkAlternate="net-10.0" />
|
434 | 434 | </Parameters>
|
435 | 435 | <Docs>
|
436 |
| - <param name="key">To be added.</param> |
437 |
| - <param name="valueFactory">To be added.</param> |
438 |
| - <summary>To be added.</summary> |
439 |
| - <returns>To be added.</returns> |
440 |
| - <remarks>To be added.</remarks> |
| 436 | + <param name="key">The key of the value to find. It cannot be <see langword="null" />.</param> |
| 437 | + <param name="valueFactory">The callback that creates a value for key, if one does not exist already. It cannot be <see langword="null" />.</param> |
| 438 | + <summary> |
| 439 | + <para>Searches for a specified key in the table and returns the corresponding value. If the key does not exist in the table, the method invokes the supplied factory to create a value that is bound to the specified key.</para> |
| 440 | + </summary> |
| 441 | + <returns>The value bound to <typeparamref name="TKey" /> in the current <see cref="T:System.Runtime.CompilerServices.ConditionalWeakTable`2" /> instance, after the method completes.</returns> |
| 442 | + <remarks> |
| 443 | + <para>If multiple threads try to initialize the same key, the table may invoke <paramref name="valueFactory" /> multiple times with the same key. Exactly one of these calls will succeed and the returned value of that call will be the one added to the table and returned by all the racing <see cref="M:System.Runtime.CompilerServices.ConditionalWeakTable`2.GetOrAdd(`0,System.Func{`0,`1})" /> calls. This rule permits the table to invoke <paramref name="valueFactory" /> outside the internal table lock, to prevent deadlocks.</para> |
| 444 | + </remarks> |
| 445 | + <exception cref="T:System.ArgumentNullException"> |
| 446 | + <paramref name="key" /> or <paramref name="valueFactory" /> are <see langword="null" />.</exception> |
441 | 447 | </Docs>
|
442 | 448 | </Member>
|
443 | 449 | <Member MemberName="GetOrAdd">
|
|
469 | 475 | <Parameter Name="value" Type="TValue" Index="1" FrameworkAlternate="net-10.0" />
|
470 | 476 | </Parameters>
|
471 | 477 | <Docs>
|
472 |
| - <param name="key">To be added.</param> |
473 |
| - <param name="value">To be added.</param> |
474 |
| - <summary>To be added.</summary> |
475 |
| - <returns>To be added.</returns> |
| 478 | + <param name="key">The key of the value to find. It cannot be <see langword="null" />.</param> |
| 479 | + <param name="value">The value to add and bind to <typeparamref name="TKey" />, if one does not exist already.</param> |
| 480 | + <summary> |
| 481 | + <para>Searches for a specified key in the table and returns the corresponding value. If the key does not exist in the table, the method adds the given value and binds it to the specified key.</para> |
| 482 | + </summary> |
| 483 | + <returns>The value bound to <typeparamref name="TKey" /> in the current <see cref="T:System.Runtime.CompilerServices.ConditionalWeakTable`2" /> instance, after the method completes.</returns> |
476 | 484 | <remarks>To be added.</remarks>
|
| 485 | + <exception cref="T:System.ArgumentNullException"> |
| 486 | + <paramref name="key" /> is <see langword="null" />.</exception> |
477 | 487 | </Docs>
|
478 | 488 | </Member>
|
479 | 489 | <Member MemberName="GetOrAdd<TArg>">
|
|
519 | 529 | <Parameter Name="factoryArgument" Type="TArg" Index="2" FrameworkAlternate="net-10.0" />
|
520 | 530 | </Parameters>
|
521 | 531 | <Docs>
|
522 |
| - <typeparam name="TArg">To be added.</typeparam> |
523 |
| - <param name="key">To be added.</param> |
524 |
| - <param name="valueFactory">To be added.</param> |
525 |
| - <param name="factoryArgument">To be added.</param> |
526 |
| - <summary>To be added.</summary> |
527 |
| - <returns>To be added.</returns> |
528 |
| - <remarks>To be added.</remarks> |
| 532 | + <typeparam name="TArg">The type of the additional argument to use with the value factory.</typeparam> |
| 533 | + <param name="key">The key of the value to find. It cannot be <see langword="null" />.</param> |
| 534 | + <param name="valueFactory">The callback that creates a value for key, if one does not exist already. It cannot be <see langword="null" />.</param> |
| 535 | + <param name="factoryArgument">The additional argument to supply to <paramref name="valueFactory" /> upon invocation.</param> |
| 536 | + <summary> |
| 537 | + <para>Searches for a specified key in the table and returns the corresponding value. If the key does not exist in the table, the method invokes the supplied factory to create a value that is bound to the specified key.</para> |
| 538 | + </summary> |
| 539 | + <returns>The value bound to <typeparamref name="TKey" /> in the current <see cref="T:System.Runtime.CompilerServices.ConditionalWeakTable`2" /> instance, after the method completes.</returns> |
| 540 | + <remarks> |
| 541 | + <para>If multiple threads try to initialize the same key, the table may invoke <paramref name="valueFactory" /> multiple times with the same key. Exactly one of these calls will succeed and the returned value of that call will be the one added to the table and returned by all the racing <see cref="M:System.Runtime.CompilerServices.ConditionalWeakTable`2.GetOrAdd``1(`0,System.Func{`0,``0,`1},``0)" /> calls. This rule permits the table to invoke <paramref name="valueFactory" /> outside the internal table lock, to prevent deadlocks.</para> |
| 542 | + </remarks> |
| 543 | + <exception cref="T:System.ArgumentNullException"> |
| 544 | + <paramref name="key" /> or <paramref name="valueFactory" /> are <see langword="null" />.</exception> |
529 | 545 | </Docs>
|
530 | 546 | </Member>
|
531 | 547 | <Member MemberName="GetOrCreateValue">
|
@@ -792,11 +808,14 @@ Note: In the <see href="https://go.microsoft.com/fwlink/?LinkID=247912">.NET for
|
792 | 808 | </Parameter>
|
793 | 809 | </Parameters>
|
794 | 810 | <Docs>
|
795 |
| - <param name="key">To be added.</param> |
796 |
| - <param name="value">To be added.</param> |
797 |
| - <summary>To be added.</summary> |
798 |
| - <returns>To be added.</returns> |
| 811 | + <param name="key">The key to remove.</param> |
| 812 | + <param name="value">value removed from the table, if it was present.</param> |
| 813 | + <summary>Removes a key and its value from the table, and returns the removed value if it was present.</summary> |
| 814 | + <returns> |
| 815 | + <see langword="true" /> if the key is found and removed; otherwise, <see langword="false" />.</returns> |
799 | 816 | <remarks>To be added.</remarks>
|
| 817 | + <exception cref="T:System.ArgumentNullException"> |
| 818 | + <paramref name="key" /> is <see langword="null" />.</exception> |
800 | 819 | </Docs>
|
801 | 820 | </Member>
|
802 | 821 | <Member MemberName="System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TKey,TValue>>.GetEnumerator">
|
@@ -943,6 +962,8 @@ retrieved. Additionally, it may not return all entries that were present when th
|
943 | 962 | <returns>
|
944 | 963 | <see langword="true" /> if the key/value pair was added; <see langword="false" /> if the table already contained the key.</returns>
|
945 | 964 | <remarks>To be added.</remarks>
|
| 965 | + <exception cref="T:System.ArgumentNullException"> |
| 966 | + <paramref name="key" /> is <see langword="null" />.</exception> |
946 | 967 | </Docs>
|
947 | 968 | </Member>
|
948 | 969 | <Member MemberName="TryGetValue">
|
|
0 commit comments