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