Skip to content

Instantly share code, notes, and snippets.

@louthy
Created November 16, 2014 00:12
Show Gist options
  • Save louthy/dc06868c446ed76f0d7a to your computer and use it in GitHub Desktop.
Save louthy/dc06868c446ed76f0d7a to your computer and use it in GitHub Desktop.
namespace Language
{
public static class Helpers
{
public static Tuple<T1, T2> tuple<T1, T2>(T1 item1, T2 item2)
{
return Tuple.Create(item1, item2);
}
public static Tuple<T1, T2, T3> tuple<T1, T2, T3>(T1 item1, T2 item2, T3 item3)
{
return Tuple.Create(item1, item2, item3);
}
public static Tuple<T1, T2, T3, T4> tuple<T1, T2, T3, T4>(T1 item1, T2 item2, T3 item3, T4 item4)
{
return Tuple.Create(item1, item2, item3, item4);
}
public static Tuple<T1, T2, T3, T4, T5> tuple<T1, T2, T3, T4, T5>(T1 item1, T2 item2, T3 item3, T4 item4, T5 item5)
{
return Tuple.Create(item1, item2, item3, item4, item5);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment