PeterO.Pair-TFirst-TSecond
PeterO.Pair
public sealed class Pair<TFirst, TSecond> : System.IEquatable<PeterO.Pair<TFirst, TSecond>>
Stores a pair of related objects.
Member Summary
Equals(object)
- Determines whether this object and another object are equal.Equals(PeterO.Pair<TFirst, TSecond>)
- Not documented yet.First
- Gets the first object in the pair.GetHashCode()
- Returns the hash code for this instance.Second
- Gets the second object in the pair.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.
Pair Constructor
public Pair( TFirst first, TSecond second);
Parameters:
first: The parameter first is a TFirst object.
second: The parameter second is a TSecond object.
First
public TFirst First { get; }
Gets the first object in the pair.
Returns:
The first object in the pair.
Second
public TSecond Second { get; }
Gets the second object in the pair.
Returns:
The second object in the pair.
Return Value:
A TSecond object.
Equals
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
.
Equals
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
.
GetHashCode
public override int GetHashCode();
Returns the hash code for this instance.
Return Value:
A 32-bit signed integer.
ToString
public override string ToString();
Converts this object to a text string.
Return Value:
A text string.