CSharpUtilities::Pair< TFirst, TSecond > Struct Template Reference


Detailed Description

template<TFirst, TSecond>
struct CSharpUtilities::Pair< TFirst, TSecond >

Generic Pair structure, often useful for keeping ordered lists of associated objects.

Template Parameters:
TFirst Type for the first item in the pair.
TSecond Type for the second item in the pair.

List of all members.

Public Member Functions

  Pair (TFirst aFirst, TSecond aSecond)
  Constructor.
override int  GetHashCode ()
  Get a hash code for this object.
override bool  Equals (Object o)
  Determine if this Pair is equal to the passed in Object.

Properties

TFirst  First [get]
  The first item in the Pair.
TSecond  Second [get]
  The second item in the Pair.

Member Function Documentation

template<TFirst , TSecond >
CSharpUtilities::Pair< TFirst, TSecond >::Pair ( TFirst  aFirst,
TSecond  aSecond 
) [inline]

Constructor.

Parameters:
aFirst First item
aSecond Second item
template<TFirst , TSecond >
override int CSharpUtilities::Pair< TFirst, TSecond >::GetHashCode ( ) [inline]

Get a hash code for this object.

Returns:
A hash code for this object.
template<TFirst , TSecond >
override bool CSharpUtilities::Pair< TFirst, TSecond >::Equals ( Object  o ) [inline]

Determine if this Pair is equal to the passed in Object.

Parameters:
o Object to evaluate for equality with this Pair.
Returns:
true if this Pair is equal to the passed in Object.

Property Documentation

template<TFirst , TSecond >
TFirst CSharpUtilities::Pair< TFirst, TSecond >::First [get]

The first item in the Pair.

template<TFirst , TSecond >
TSecond CSharpUtilities::Pair< TFirst, TSecond >::Second [get]

The second item in the Pair.