Skip to content

Instantly share code, notes, and snippets.

@bawNg

bawNg/Tuple.cs Secret

Last active April 6, 2016 11:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bawNg/849af37c95e1a6527901c88f8b6b2bc6 to your computer and use it in GitHub Desktop.
Save bawNg/849af37c95e1a6527901c88f8b6b2bc6 to your computer and use it in GitHub Desktop.
namespace LibuvSharp
{
public struct Tuple<T1, T2>
{
public T1 Item1 { get; private set; }
public T2 Item2 { get; private set; }
internal Tuple(T1 item1, T2 item2)
{
Item1 = item1;
Item2 = item2;
}
}
public static class Tuple
{
public static Tuple<T1, T2> Create<T1, T2>(T1 item1, T2 item2) => new Tuple<T1, T2>(item1, item2);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment