public GDEStockData ShallowClone() { string newKey = Guid.NewGuid().ToString(); GDEStockData newClone = new GDEStockData(newKey); newClone.minute = minute; newClone.lotnumber = lotnumber; newClone.repeatnumber = repeatnumber; newClone.id = id; newClone.name = name; return(newClone); }
public GDEStockData DeepClone() { GDEStockData newClone = ShallowClone(); return(newClone); }