Interface IUpdateValue<TKey, TValue>
An interface to provide conditional or custom update logic to a concurrent dictionary.
Assembly: Lucene.Net.dll
Syntax
public interface IUpdateValue<TKey, TValue>
Type Parameters
| Name |
Description |
| TKey |
|
| TValue |
|
Methods
|
Improve this Doc
View Source
UpdateValue(TKey, ref TValue)
Called when the key was found within the dictionary to produce a modified value to update the item
to. Return true to continue with the update, or false to prevent the key/value from being updated.
Declaration
bool UpdateValue(TKey key, ref TValue value)
Parameters
| Type |
Name |
Description |
| TKey |
key |
|
| TValue |
value |
|
Returns
| Type |
Description |
| System.Boolean |
|
Extension Methods