public class VPair<TFirst, TSecond>
{
public TFirst First { get; set; }
public TSecond Second { get; set; }
public VPair(TFirst first, TSecond second)
{
First = first;
Second = second;
}
}
или
Tuple
класс в c # 4.0
бонус:
public class VTriple<TFirst, TSecond, TThird> : VPair<TFirst, TSecond>
{
public TThird Third { get; set; }
public VTriple(TFirst first, TSecond second, TThird third)
: base(first, second)
{
Third = third;
}
}