Esempio n. 1
0
        private void Main00()
        {
            myA mA;

            mA = new myA(3, 4);
            Console.WriteLine("mA: ({0})", mA.MyString());
            Console.WriteLine("mA x0: ({0})", mA.X0);
            Console.WriteLine("mA x1: ({0})", mA.X1);
        }
Esempio n. 2
0
 private void Main03()
 {
     myA x1 = new myA(1, 2, 3);
     myA x0 = new myA(4, 5, 6);
     myB myB01 = new myB(x1, x0);
     myB myB02 = new myB(x1, x0);
     Console.WriteLine("MB01: {0}", myB01);
     Console.WriteLine("MB01: {0}", myB02);
     myB02.x1.x2 = 4;
     Console.WriteLine();
     Console.WriteLine("MB01: {0}", myB01);
     Console.WriteLine("MB01: {0}", myB02);
 }
Esempio n. 3
0
 private void Main01()
 {
     myA myA01 = new myA(1, 2, 3);
     myA myA02, myA03;
     myA02 = myA01.Copy();
     myA03 = new myA(myA01);
     Console.WriteLine("myA01 is= {0}", myA01);
     Console.WriteLine("myA02 is = {0}", myA02);
     Console.WriteLine("myA03 is = {0}", myA03);
     myA02.x2 = 4;
     Console.WriteLine();
     Console.WriteLine("myA01 is= {0}", myA01);
     Console.WriteLine("myA02 is = {0}", myA02);
     Console.WriteLine("myA03 is = {0}", myA03);
 }
Esempio n. 4
0
 private void Main00()
 {
     myA newobj = new myA(4,5,6);
     Console.WriteLine("My Crc is = {0}", newobj.CRC);
 }
Esempio n. 5
0
 public myB(myA x1, myA x0)
 {
     this.x1 = x1.Copy();
     this.x0 = x0.Copy();
 }