Show / Hide Table of Contents

Class Pair<TKey, TValue>

Tuple class with 2 items

Inheritance
object
Tuple<TKey, TValue>
Pair<TKey, TValue>
Implements
IEquatable<Tuple<TKey, TValue>>
Inherited Members
Tuple<TKey, TValue>.Item1
Tuple<TKey, TValue>.Item2
Tuple<TKey, TValue>.Equals(object)
Tuple<TKey, TValue>.ToString()
Tuple<TKey, TValue>.Equals(Tuple<TKey, TValue>)
Tuple<TKey, TValue>.GetHashCode()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
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.

Implements

IEquatable<T>

Extension Methods

Extensions.Yield<T>(T)
TupleExtensions.Append<T1, T2, T3>(Tuple<T1, T2>, T3)
In this article
Back to top Generated by DocFX