Exemplo n.º 1
0
 public WebsitePageZone(WebsitePageZone other)
 {
     Name     = other.Name;
     Contents = other.Contents;
     Audience = other.Audience;
     ZoneType = other.ZoneType;
     CodePath = other.CodePath;
 }
Exemplo n.º 2
0
 /// <summary>
 /// - Explicitly does not copy the Id.
 /// </summary>
 /// <param name="other"></param>
 public void DeepAssignmentFrom(WebsitePageZone other)
 {
     Name     = other.Name;
     Contents = other.Contents;
     Audience = other.Audience;
     ZoneType = other.ZoneType;
     CodePath = other.CodePath;
 }
Exemplo n.º 3
0
        /// <summary>
        /// - Not sure if should copy Id yet.
        /// </summary>
        /// <returns></returns>
        public WebsitePageZone DeepClone()
        {
            var clone = new WebsitePageZone();

            clone.Id       = Id;
            clone.Name     = Name;
            clone.Contents = Contents;
            clone.Audience = Audience;
            clone.ZoneType = ZoneType;
            clone.CodePath = CodePath;

            return(clone);
        }