private void Main01() { myB mB; mB = new myB(3, 4); Console.WriteLine("mB: ({0})", mB.MyString()); Console.WriteLine("mB x4: ({0})", mB.X4); Console.WriteLine("mB x3: ({0})", mB.X3); Console.WriteLine("mB x2: ({0})", mB.X2); Console.WriteLine("mB x1: ({0})", mB.X1); Console.WriteLine("mB x0: ({0})", mB.X0); }
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); }
private void Main02() { myB myB01 = new myB(new myA(1, 2, 3), new myA(4, 5, 6)); Console.WriteLine("MB01: {0}", myB01); }