Show / Hide Table of Contents

Class TransactedKeyValueTable

Helper methods for ITransactedKeyValueTable<TKey, TValue>

Inheritance
System.Object
TransactedKeyValueTable
Namespace: Reaqtor.QueryEngine
Assembly: Reaqtor.QueryEngine.dll
Syntax
public static class TransactedKeyValueTable : Object

Methods

Clear<TKey, TValue>(ITransactedKeyValueTable<TKey, TValue>)

Clears the key value table.

Declaration
public static void Clear<TKey, TValue>(this ITransactedKeyValueTable<TKey, TValue> table)
Parameters
Type Name Description
ITransactedKeyValueTable<TKey, TValue> table

The key value table.

Type Parameters
Name Description
TKey

The type of the key in the key value table.

TValue

The type of the value in the key value table.

TryGet<TKey, TValue>(ITransactedKeyValueTable<TKey, TValue>, TKey, out TValue)

Gets the value if the the key exists.

Declaration
public static bool TryGet<TKey, TValue>(this ITransactedKeyValueTable<TKey, TValue> table, TKey key, out TValue value)
Parameters
Type Name Description
ITransactedKeyValueTable<TKey, TValue> table

The key value table.

TKey key

The key to lookup.

TValue value

The value corresponding to the key.

Returns
Type Description
System.Boolean

True if found, false otherwise.

Type Parameters
Name Description
TKey

The type of the key in the key value table.

TValue

The type of the value in the key value table.

TryRemove<TKey, TValue>(ITransactedKeyValueTable<TKey, TValue>, TKey)

Removes the value if the the key exists.

Declaration
public static bool TryRemove<TKey, TValue>(this ITransactedKeyValueTable<TKey, TValue> table, TKey key)
Parameters
Type Name Description
ITransactedKeyValueTable<TKey, TValue> table

The key value table.

TKey key

The key to remove.

Returns
Type Description
System.Boolean

True if found, false otherwise.

Type Parameters
Name Description
TKey

The type of the key in the key value table.

TValue

The type of the value in the key value table.

In This Article
Back to top Generated by DocFX