Interface ICreateValue<TKey, TValue>
An interface to provide conditional or custom creation logic to a concurrent dictionary.
Assembly: Lucene.Net.dll
Syntax
public interface ICreateValue<TKey, TValue>
Type Parameters
Name |
Description |
TKey |
|
TValue |
|
Methods
|
Improve this Doc
View Source
CreateValue(TKey, out TValue)
Called when the key was not found within the dictionary to produce a new value that can be added.
Return true to continue with the insertion, or false to prevent the key/value from being inserted.
Declaration
bool CreateValue(TKey key, out TValue value)
Parameters
Type |
Name |
Description |
TKey |
key |
|
TValue |
value |
|
Returns
Type |
Description |
System.Boolean |
|
Extension Methods