PairT1, T2 StructureDryadLINQ documentation
Represents a key/value pair. Very similar to KeyValuePair, but adds a few more methods.

Namespace: Microsoft.Research.DryadLinq
Assembly: Microsoft.Research.DryadLinq (in Microsoft.Research.DryadLinq.dll) Version: 0.2.1.0 (0.2.1.0)
Syntax

[SerializableAttribute]
public struct Pair<T1, T2> : IEquatable<Pair<T1, T2>>

Type Parameters

T1
The type of the key
T2
The type of the value

The PairT1, T2 type exposes the following members.

Constructors

  NameDescription
Public methodPairT1, T2
Initializes an instance of this key-value Pair structure.
Top
Methods

  NameDescription
Public methodEquals(Object)
Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(PairT1, T2)
Determines whether this instance and another Pair are equal.
Public methodStatic memberEquals(PairT1, T2, PairT1, T2)
Determines whether two specified Pairs are equal.
Public methodGetHashCode
Returns the hash code of the current Pair.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current Pair.
(Overrides ValueTypeToString.)
Top
Operators

  NameDescription
Public operatorStatic memberEquality
Determines whether two specified Pairs are equal.
Public operatorStatic memberInequality
Determines whether two specified Pairs are not equal.
Top
Properties

  NameDescription
Public propertyKey
Gets the key in the key-value pair.
Public propertyValue
Gets the value in the key-value pair.
Top
See Also

Reference