Click or drag to resize
DigitalRunePairTFirst, TSecond Structure
Stores two ordered related objects.

Namespace: DigitalRune.Collections
Assembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntax
[SerializableAttribute]
public struct Pair<TFirst, TSecond> : IEquatable<Pair<TFirst, TSecond>>

Type Parameters

TFirst
The type of the first object.
TSecond
The type of the second object.

The PairTFirst, TSecond type exposes the following members.

Constructors
  NameDescription
Public methodPairTFirst, TSecond
Initializes a new instance of the PairTFirst, TSecond class with the given objects.
Top
Methods
Operators
  NameDescription
Public operatorStatic memberEquality
Compares two PairTFirst, TSecond objects to determine whether they are the same.
Public operatorStatic memberInequality
Compares two PairTFirst, TSecond objects to determine whether they are different.
Top
Properties
  NameDescription
Public propertyFirst
Gets or sets the first object.
Public propertySecond
Gets or sets the second object.
Top
Remarks
PairTFirst, TSecond overloads the method Equals(PairTFirst, TSecond) and the equality operators. Two PairTFirst, TSecond objects are considered as equal if they contain the same objects in the same order. If TFirst and TSecond are the same type and the order of the objects does not matter, use PairT instead of PairTFirst, TSecond.
See Also