Permalink
Browse files

pair

  • Loading branch information...
1 parent 269cb04 commit a8854bf2a808fda0dcd49a65003ba149314a91bb @adrianaisemberg committed Apr 5, 2012
Showing with 23 additions and 0 deletions.
  1. +23 −0 CLAP/Pair.cs
View
@@ -0,0 +1,23 @@
+
+namespace CLAP
+{
+ internal class Pair<TFirst, TSecond>
+ {
+ public TFirst First { get; private set; }
+ public TSecond Second { get; private set; }
+
+ public Pair(TFirst first, TSecond second)
+ {
+ First = first;
+ Second = second;
+ }
+ }
+
+ internal static class Pair
+ {
+ internal static Pair<TFirst, TSecond> Create<TFirst, TSecond>(TFirst first, TSecond second)
+ {
+ return new Pair<TFirst, TSecond>(first, second);
+ }
+ }
+}

0 comments on commit a8854bf

Please sign in to comment.