Here is the class Pair<S,T>:using System;
public class Pair<T,S>{
private T first;
private S second;
public Pair(T first, S second){
this.first = first; this.second = second;
}
public T First{
get {return first;}
}
public S Second{
get {return second;}
}
}