Table of Contents

Delegate DictionaryInserter<TDictionary, TKey, TValue>

Namespace
PolyType.Abstractions
Assembly
PolyType.dll

Delegate that inserts a key-value pair into a mutable dictionary.

public delegate bool DictionaryInserter<TDictionary, TKey, TValue>(ref TDictionary dictionary, TKey key, TValue value)

Parameters

dictionary TDictionary

The dictionary instance to insert the key-value pair into.

key TKey

The key to insert.

value TValue

The value to insert.

Returns

bool

true if the insertion was successful, false otherwise.

Type Parameters

TDictionary

The type of the dictionary to insert into.

TKey

The type of the key to insert.

TValue

The type of the value to insert.