예제 #1
0
        public virtual void CopyItem(int toIndex, ILimitedList fromList, int fromIndex)
        {
            ILimitedList <T> other = fromList as ILimitedList <T>;

            if (other == null)
            {
                throw new ArgumentException(nameof(fromList));
            }

            this[toIndex] = other[fromIndex];
        }
예제 #2
0
        public override void CopyItem(int toIndex, ILimitedList fromList, int fromIndex)
        {
            Table <T> other = fromList as Table <T>;

            if (other == null)
            {
                throw new ArgumentException(nameof(fromList));
            }

            foreach (var pair in Columns)
            {
                pair.Value.CopyItem(toIndex, other.Columns[pair.Key], fromIndex);
            }
        }
예제 #3
0
 public ConsoleUI(ILimitedList <string> messageLog, IMap map)
 {
     this.messageLog = messageLog;
     this.map        = map;
 }