public GDETestSchemaData DeepClone() { GDETestSchemaData newClone = ShallowClone(); newClone.TestSchema = TestSchema.DeepClone(); return(newClone); }
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); }