Exemplo n.º 1
0
        public GDETestSchemaData DeepClone()
        {
            GDETestSchemaData newClone = ShallowClone();

            newClone.TestSchema = TestSchema.DeepClone();
            return(newClone);
        }
Exemplo n.º 2
0
        public GDETestSchemaData ShallowClone()
        {
            string            newKey   = Guid.NewGuid().ToString();
            GDETestSchemaData newClone = new GDETestSchemaData(newKey);

            newClone.TestInt    = TestInt;
            newClone.TestString = TestString;

            newClone.TestSchema = TestSchema;

            newClone.TestList = new List <string>(TestList);
            newClone.Set_TestList();

            return(newClone);
        }