Class Pair<TKey, TValue>
Tuple class with 2 items
Implements
IEquatable<Tuple<TKey, TValue>>
Inherited Members
Namespace: Lokad
Assembly: Algenta.Colectica.Model.dll
Syntax
[Serializable]
public sealed class Pair<TKey, TValue> : Tuple<TKey, TValue>, IEquatable<Tuple<TKey, TValue>>
Type Parameters
| Name | Description |
|---|---|
| TKey | The type of the first item. |
| TValue | The type of the second item. |
Constructors
Pair(TKey, TValue)
Initializes a new instance of the Pair<TKey, TValue> class.
Declaration
public Pair(TKey first, TValue second)
Parameters
| Type | Name | Description |
|---|---|---|
| TKey | first | The first item. |
| TValue | second | The second item. |
Properties
Key
Gets the key (or Item1).
Declaration
public TKey Key { get; }
Property Value
| Type | Description |
|---|---|
| TKey | The key. |
Value
Gets the value (or Item2).
Declaration
public TValue Value { get; }
Property Value
| Type | Description |
|---|---|
| TValue | The value. |