7 public int this [int i
] {
8 set { Console.WriteLine ("set= " + i); id = value; }
9 get { Console.WriteLine ("get= " + i); return id; }
15 public MyPoint (int x
, int y
)
26 static decimal Foo (decimal t
, decimal a
)
31 static string Bar (int a
= 1, string s
= "2", char c
= '3')
33 return a
.ToString () + s
+ c
;
36 static int Test (int a
, int b
)
38 Console
.WriteLine ("{0} {1}", a
, b
);
42 public static int Main ()
45 if (Foo (a
: h
= 9, t
: 3) != 9)
51 if (Bar (a
: 1, s
: "x", c
: '2') != "1x2")
54 if (Bar (s
: "x") != "1x3")
58 if (Test (a
: i
++, b
: i
++) != 17)
65 if (Test (b
: i
++, a
: i
++) != 13)
78 MyPoint mp
= new MyPoint (y
: -1, x
: 5);
82 Console
.WriteLine ("ok");