You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
458 B
22 lines
458 B
namespace System
|
|
{
|
|
public class Tuple<T1, T2>
|
|
{
|
|
public Tuple(T1 item1, T2 item2)
|
|
{
|
|
Item1 = item1;
|
|
Item2 = item2;
|
|
}
|
|
|
|
public T1 Item1 { get; private set; }
|
|
public T2 Item2 { get; private set; }
|
|
}
|
|
|
|
public static class Tuple
|
|
{
|
|
public static Tuple<T1, T2> Create<T1, T2>(T1 item1, T2 item2)
|
|
{
|
|
return new Tuple<T1, T2>(item1, item2);
|
|
}
|
|
}
|
|
}
|