Click or drag to resize
DigitalRunePairT Structure
Stores two unordered related objects.

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

Type Parameters

T
The type of the contained objects.

The PairT type exposes the following members.

Constructors
  NameDescription
Public methodPairT
Initializes a new instance of the PairT class with the given objects.
Top
Methods
Operators
  NameDescription
Public operatorStatic memberEquality
Compares two PairT objects to determine whether they are the same.
Public operatorStatic memberInequality
Compares two PairT 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
PairT overloads the method Equals(PairT) and the equality operators. Two PairT objects are considered as equal if they contain the same objects. The order of the objects does not matter. If the order of the objects is relevant, use PairTFirst, TSecond instead of PairT.
See Also