Esempio n. 1
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            CTest obj1 = new CTest(1);
            //obj1.BaseData1 = 1111;
            //obj1.BaseData2 = "obj1 BaseData2";
            //obj1.BaseData4 = 4444;
            //obj1.ChildData1 = 1111;
            //obj1.ChildData2 = "obj1 Child2";
            //obj1.ChildData4 = "obj1 child4";

            CTest obj2 = new CTest(2);

            //obj2.BaseData1 = 2222;
            //obj1.BaseData2 = "obj1 BaseData2";
            //obj2.BaseData4 = 8888;
            //obj2.ChildData1 = 2222;
            //obj2.ChildData4 = "obj2 child4";
            ObjTools.CopyMembers(obj1, obj2);
        }
Esempio n. 2
0
 public override void CopyFrom(CBaseClass old)
 {
     ObjTools.CopyMembers(old, this);
 }