Class MutableKeyValue<TKey, TValue>
Defines a mutable key/value pair, where the key and value can be both set and retrieved. Create instances of this class either via the constructors, or via the factory method Create<TKey, TValue>(TKey, TValue).
This class is mainly used as the dictionary input of DictionaryLookupTransform<TInputOutputError, TDictionaryInput, TKey, TValue> and DictionaryLookupSplitTransform<TInputOutputError, TDictionaryInput, TKey, TValue>.
When mutability is not needed, consider using KeyValuePair<TKey,TValue>.
Namespace: actionETL
Assembly: actionETL.dll
Syntax
public class MutableKeyValue<TKey, TValue>
Type Parameters
| Name | Description |
|---|---|
| TKey | The type of the key. |
| TValue | The type of the value. |
Constructors
MutableKeyValue()
Initializes a new instance of MutableKeyValue<TKey, TValue>, with defaults for Key and Value. Set the properties to change their values.
Declaration
public MutableKeyValue()
MutableKeyValue(TKey, TValue)
Initializes a new instance of MutableKeyValue<TKey, TValue>, with the specified key and value.
Declaration
public MutableKeyValue(TKey key, TValue value)
Parameters
| Type | Name | Description |
|---|---|---|
| TKey | key | The key in the key/value pair. |
| TValue | value | The value in the key/value pair. |
Properties
Key
Gets or sets the key in the key/value pair.
Declaration
public TKey Key { get; set; }
Property Value
| Type | Description |
|---|---|
| TKey |
Value
Gets or sets the value in the key/value pair.
Declaration
public TValue Value { get; set; }
Property Value
| Type | Description |
|---|---|
| TValue |
Methods
ToString()
Returns a string representation of the key and value.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| String |