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
Copy file name to clipboardExpand all lines: BitFaster.Caching/Atomic/ConcurrentDictionaryExtensions.cs
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ public static class ConcurrentDictionaryExtensions
18
18
/// <param name="valueFactory">The function used to generate a value for the key.</param>
19
19
/// <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>
@@ -32,6 +33,7 @@ public static V GetOrAdd<K, V>(this ConcurrentDictionary<K, AtomicFactory<K, V>>
32
33
/// <param name="factoryArgument">An argument value to pass into valueFactory.</param>
33
34
/// <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>
@@ -45,6 +47,7 @@ public static V GetOrAdd<K, V, TArg>(this ConcurrentDictionary<K, AtomicFactory<
45
47
/// <param name="valueFactory">The function used to generate a value for the key.</param>
46
48
/// <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>
/// <param name="factoryArgument">An argument value to pass into valueFactory.</param>
60
63
/// <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>
/// <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>
73
77
/// <returns>true if the key was found in the ConcurrentDictionary; otherwise, false.</returns>
/// <param name="key">The key of the value to get.</param>
94
99
/// <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>
/// <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>
150
158
/// <returns>true if the object was removed successfully; otherwise, false.</returns>
/// <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
178
/// <returns>true if the object was removed successfully; otherwise, false.</returns>
0 commit comments