示例#1
0
        /// <summary>
        /// Adds the specified unit.
        /// </summary>
        /// <param name="unit">The unit.</param>
        public virtual void Add(ILuaUndoUnit unit)
        {
            if (unit == null)
                throw new ArgumentNullException("unit");

            undoUnits.Add(unit);
        }
示例#2
0
        /// <summary>
        /// Adds the specified unit.
        /// </summary>
        /// <param name="unit">The unit.</param>
        public virtual void Add(ILuaUndoUnit unit)
        {
            if (unit == null)
            {
                throw new ArgumentNullException("unit");
            }

            undoUnits.Add(unit);
        }