public CustomEpgTabInfo DeepClone() { var other = (CustomEpgTabInfo)MemberwiseClone(); other.ViewServiceList = ViewServiceList.ToList(); other.ViewContentKindList = ViewContentKindList.ToList(); other.SearchKey = SearchKey.DeepClone(); return(other); }
public EpgSearchKeyInfo GetSearchKeyReloadEpg() { EpgSearchKeyInfo key = SearchKey.DeepClone(); key.serviceList = ViewServiceList.Select(id => (long)id).ToList(); if (SearchGenreNoSyncView == false) { key.contentList = ViewContentList.DeepClone(); key.notContetFlag = (byte)(ViewNotContentFlag == true ? 1 : 0); } return(key); }