예제 #1
0
        public virtual object clone()
        {
            WorksheetRevisionTable revTable = new WorksheetRevisionTable();

            revTable.Id        = Id;
            revTable.Data      = this;
            revTable.ProjectId = ProjectId;
            return(revTable);
        }
예제 #2
0
        public virtual WorksheetRevisionTable deepCopy()
        {
            WorksheetRevisionTable p = (WorksheetRevisionTable)clone();

            p.FileList = new List <WorksheetFileTable>();

            if (FileList == null)
            {
                FileList = Collections.EMPTY_LIST;
            }


            foreach (WorksheetFileTable var in FileList)
            {
                p.FileList.Add((WorksheetFileTable)var.clone());
            }

            if (DataMapping != null)
            {
                p.DataMapping = (WorksheetDataMappingTable)DataMapping.deepCopy();
            }

            return(p);
        }