Example #1
0
 /// <summary>
 /// Initializes a new instance of an object.
 /// </summary>
 /// <param name="copyFrom">Object to copy state from.</param>
 /// <exception cref="System.ArgumentNullException"><paramref name="copyFrom">copyFrom</paramref> is null.</exception>
 public Sector(Sector copyFrom)
 {
     if (copyFrom == null)
         throw new System.ArgumentNullException("copyFrom");
     else
         copyFrom.CopyTo(this);
 }
Example #2
0
        /// <summary>
        /// Copies the state of the current object into the given one.
        /// </summary>
        /// <param name="target">Target object.</param>
        /// <exception cref="System.ArgumentNullException"><paramref name="target">target</paramref> is null.</exception>
        public void CopyTo(Sector target)
        {
            if (target == null)
                throw new System.ArgumentNullException("target");
            else
            {
                base.CopyTo(target);

                target.AreaId = this.AreaId;
                target.Order = this.Order;
            }
        }
Example #3
0
 /// <summary>
 /// Initializes a new instance of an object.
 /// </summary>
 /// <param name="copyFrom">Object to copy state from.</param>
 /// <exception cref="System.ArgumentNullException"><paramref name="copyFrom">copyFrom</paramref> is null.</exception>
 public SectorSummary(Sector copyFrom)
     : base(copyFrom)
 {
     Routes = new List<Route>();
 }