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