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); } }
public ManaValueDictionary(TwinnedList <ManaType, int> twinList) { firsts = new List <ManaType>(twinList.FirstValues); seconds = new List <int>(twinList.SecondValues); }
public TwinnedList(TwinnedList <TFirst, TSecond> twinList) { firsts = new List <TFirst>(twinList.FirstValues); seconds = new List <TSecond>(twinList.SecondValues); }