20 public class Pair<FirstType,SecondType> {
25 private FirstType first;
30 private SecondType second;
35 public FirstType First {
37 set { first = value; }
43 public SecondType Second {
44 get {
return second; }
45 set { second = value; }
48 public Pair(FirstType first, SecondType second) {
53 public override bool Equals(
object obj) {
57 return pair.First.Equals(First) && pair.
Second.Equals(Second);
61 return First.GetHashCode() * Second.GetHashCode();