예제 #1
0
        public Triplette <A, B, C> Get(C byThird)
        {
            Triplette <A, B, C> triple = null;

            cDictionary.TryGetValue(byThird, out triple);
            return(triple);
        }
예제 #2
0
        public Triplette <A, B, C> Get(A byFirst)
        {
            Triplette <A, B, C> triple = null;

            aDictionary.TryGetValue(byFirst, out triple);
            return(triple);
        }
예제 #3
0
        public Triplette <A, B, C> Get(B bySecond)
        {
            Triplette <A, B, C> triple = null;

            bDictionary.TryGetValue(bySecond, out triple);
            return(triple);
        }
예제 #4
0
        public void Add(A a, B b, C c)
        {
            Triplette <A, B, C> triple = new Triplette <A, B, C>(a, b, c);

            aDictionary.Add(a, triple);
            bDictionary.Add(b, triple);
            cDictionary.Add(c, triple);
        }