Exemple #1
0
        public void TestCloneOne()
        {
            ObjX _orig = new ObjX();

            _orig.Bool   = true;
            _orig.Int    = 11;
            _orig.Object = "OBJECT";
            _orig.String = "ObjX 11 true";

            object _clone = Cloner.Clone(_orig);

            Debug.WriteLine(_clone.ToString());
        }
Exemple #2
0
 public void TestCloneArray()
 {
     ObjX[] _origList = new ObjX[5];
     for (int _i = 0; _i < 5; _i++)
     {
         _origList[_i]        = new ObjX();
         _origList[_i].Bool   = true;
         _origList[_i].Int    = 11;
         _origList[_i].Object = "OBJECT";
         _origList[_i].String = "ObjX 11 true";
     }
     try {
         object _clone = Cloner.Clone(_origList);
         Debug.WriteLine(_clone.ToString());
     }
     catch (Exception _ex) {
         Debug.WriteLine(_ex);
     }
 }