Beispiel #1
0
        public QuestList <T> MergeLists(QuestList <T> list2)
        {
            var result = new QuestList <T>(this);

            result.AddRange(list2);
            return(result);
        }
Beispiel #2
0
        /// <summary>
        /// Add an element to the beginning of a list
        /// </summary>
        /// <param name="element"></param>
        /// <param name="list"></param>
        /// <returns></returns>
        public static QuestList <T> operator +(T element, QuestList <T> list)
        {
            //System.Diagnostics.Debug.Assert(false, "Operators on lists are deprecated");
            QuestList <T> result = new QuestList <T>();

            result.Add(element);
            result.AddRange(list);
            return(result);
        }