namespace Chernobyl.Collections.Generic { /// /// Holds a pair of objects. /// /// The type of the first object to hold. /// The type of the second object to hold. public struct Pair { /// /// Constructor. /// /// The first object to hold. /// The second object to hold. public Pair(TFirst first, TSecond second) { _first = first; _second = second; } /// /// The first object. /// public TFirst First { get { return _first; } } /// /// The second object. /// public TSecond Second { get { return _second; } } /// /// The backing field to . /// readonly TFirst _first; /// /// The backing field to . /// readonly TSecond _second; }; }