public ExportEntry cloneExport(int exportid, string newPackageName, string newObjectName) { ExportEntry cloneObj = Exports[exportid - 1]; ExportEntry exp = new ExportEntry(); exp.pccRef = this; exp.Info = cloneObj.Info; listsStream.Seek(ExportDataEnd, SeekOrigin.Begin); exp.DataSize = cloneObj.DataSize; exp.DataOffset = (int)listsStream.Position; exp.ClassName = cloneObj.ClassName; byte[] data = cloneObj.Data; listsStream.Seek(ExportDataEnd, SeekOrigin.Begin); listsStream.WriteBytes(data); exp.exportid = Exports.Count() + 1; exp.setPackageName(newPackageName); exp.setObjectName(newObjectName); LastExport = exp; Exports.Add(exp); return(exp); }
public ExportEntry cloneExport(int exportid, string newPackageName, string newObjectName) { ExportEntry cloneObj = Exports[exportid-1]; ExportEntry exp = new ExportEntry(); exp.pccRef = this; exp.Info = cloneObj.Info; listsStream.Seek(ExportDataEnd, SeekOrigin.Begin); exp.DataSize = cloneObj.DataSize; exp.DataOffset = (int)listsStream.Position; exp.ClassName = cloneObj.ClassName; byte[] data = cloneObj.Data; listsStream.Seek(ExportDataEnd, SeekOrigin.Begin); listsStream.WriteBytes(data); exp.exportid = Exports.Count()+1; exp.setPackageName(newPackageName); exp.setObjectName(newObjectName); LastExport = exp; Exports.Add(exp); return exp; }