Beispiel #1
0
        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);
        }
Beispiel #2
0
        public GDEStockData DeepClone()
        {
            GDEStockData newClone = ShallowClone();

            return(newClone);
        }