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]; }
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); } }
public ConsoleUI(ILimitedList <string> messageLog, IMap map) { this.messageLog = messageLog; this.map = map; }