You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Adds a key/value pair to the ConcurrentDictionary if the key does not already exist. Returns the new value, or the existing value if the key already exists.
42
+
/// </summary>
43
+
/// <param name="dictionary">The ConcurrentDictionary to use.</param>
44
+
/// <param name="key">The key of the element to add.</param>
45
+
/// <param name="valueFactory">The function used to generate a value for the key.</param>
46
+
/// <returns>The value for the key. This will be either the existing value for the key if the key is already in the dictionary, or the new value if the key was not in the dictionary.</returns>
/// Adds a key/value pair to the ConcurrentDictionary by using the specified function and an argument if the key does not already exist, or returns the existing value if the key exists.
55
+
/// </summary>
56
+
/// <param name="dictionary">The ConcurrentDictionary to use.</param>
57
+
/// <param name="key">The key of the element to add.</param>
58
+
/// <param name="valueFactory">The function used to generate a value for the key.</param>
59
+
/// <param name="factoryArgument">An argument value to pass into valueFactory.</param>
60
+
/// <returns>The value for the key. This will be either the existing value for the key if the key is already in the dictionary, or the new value if the key was not in the dictionary.</returns>
/// Attempts to get the value associated with the specified key from the ConcurrentDictionary.
91
+
/// </summary>
92
+
/// <param name="dictionary">The ConcurrentDictionary to use.</param>
93
+
/// <param name="key">The key of the value to get.</param>
94
+
/// <param name="value">When this method returns, contains the object from the ConcurrentDictionary that has the specified key, or the default value of the type if the operation failed.</param>
/// Attempts to remove and return the value that has the specified key from the ConcurrentDictionary.
165
+
/// </summary>
166
+
/// <param name="dictionary">The ConcurrentDictionary to use.</param>
167
+
/// <param name="key">The key of the element to remove and return.</param>
168
+
/// <param name="value">When this method returns, contains the object removed from the ConcurrentDictionary, or the default value of the TValue type if key does not exist.</param>
169
+
/// <returns>true if the object was removed successfully; otherwise, false.</returns>
0 commit comments