public virtual object Clone() { ProjectEPSTable obj = new ProjectEPSTable(); obj.ProjectEPSId = ProjectEPSId; obj.LastUpdate = LastUpdate; obj.Description = Description; obj.Code = Code; obj.Title = Title; obj.EditorId = EditorId; return(obj); }
public virtual ProjectEPSTable copyWithProjects() { ProjectEPSTable epsTable = (ProjectEPSTable)Clone(); ISet <ProjectInfoTable> set = Projects; if (set != null) { IEnumerator <ProjectInfoTable> iter = set.GetEnumerator(); set = new HashSet <ProjectInfoTable>(); while (iter.MoveNext()) { set.Add((ProjectInfoTable)iter.Current.Clone()); } epsTable.Projects = set; } return(epsTable); }