Esempio n. 1
0
 public WebsitePageZone(WebsitePageZone other)
 {
     Name     = other.Name;
     Contents = other.Contents;
     Audience = other.Audience;
     ZoneType = other.ZoneType;
     CodePath = other.CodePath;
 }
Esempio 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;
 }
Esempio 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);
        }