PeterO.Pair-TFirst-TSecond
## PeterO.Pair<TFirst, TSecond>
public sealed class Pair<TFirst, TSecond> : System.IEquatable<PeterO.Pair<TFirst, TSecond>>
Stores a pair of related objects.
Member Summary
[Equals(object)](#Equals_object)
- Determines whether this object and another object are equal.[Equals(PeterO.Pair<TFirst, TSecond>)](#Equals_PeterO_Pair_TFirst_TSecond)
- Not documented yet.[First](#First)
- Gets the first object in the pair.[GetHashCode()](#GetHashCode)
- Returns the hash code for this instance.[Second](#Second)
- Gets the second object in the pair.[ToString()](#ToString)
- Converts this object to a text string.
Parameters:
-
<TFirst>: Object type for the first object in the pair.
-
<TSecond>: Object type for the second object in the pair.
public Pair( TFirst first, TSecond second);
Parameters:
-
first: The parameter first is a TFirst object.
-
second: The parameter second is a TSecond object.
public TFirst First { get; }
Gets the first object in the pair.
Returns:
The first object in the pair.
public TSecond Second { get; }
Gets the second object in the pair.
Returns:
The second object in the pair.
Return Value:
A TSecond object.
public override bool Equals( object obj);
Determines whether this object and another object are equal.
Parameters:
- obj: The parameter obj is an arbitrary object.
Return Value:
true
if this object and another object are equal; otherwise, false
.
public sealed bool Equals( PeterO.Pair<TFirst, TSecond> other);
Not documented yet.
Parameters:
- other: The parameter other is a.Pair{`0 object.
Return Value:
Either true
or false
.
public override int GetHashCode();
Returns the hash code for this instance.
Return Value:
A 32-bit signed integer.
public override string ToString();
Converts this object to a text string.
Return Value:
A text string.