예제 #1
0
    public TwinnedList <TFirst, TSecond> this[int index]
    {
        get
        {
            TFirst  first  = FirstValues[index];
            TSecond second = SecondValues[index];
            TwinnedList <TFirst, TSecond> list = new TwinnedList <TFirst, TSecond>();
            list.Add(first, second);

            return(list);
        }
    }
예제 #2
0
 public ManaValueDictionary(TwinnedList <ManaType, int> twinList)
 {
     firsts  = new List <ManaType>(twinList.FirstValues);
     seconds = new List <int>(twinList.SecondValues);
 }
예제 #3
0
 public TwinnedList(TwinnedList <TFirst, TSecond> twinList)
 {
     firsts  = new List <TFirst>(twinList.FirstValues);
     seconds = new List <TSecond>(twinList.SecondValues);
 }