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

Parameters:

### Pair Constructor

public Pair(
    TFirst first,
    TSecond second);

Parameters:

### 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:

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:

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.

Back to petero-csharp start page.