1 // Testing the default value expressions (14.5.13)
12 for (int i
= 0; i
< n
; i
++)
26 X
.Print (default (X
));
27 X
.Print (default (T
));
28 X
.Print (default (S
));
34 public readonly string Hello
;
41 public override string ToString ()
43 return String
.Format ("S({0})", Hello
);
50 public static void Print (object obj
)
53 Console
.WriteLine ("NULL");
55 Console
.WriteLine ("OBJECT: {0} {1}", obj
, obj
.GetType ());
60 Foo
<string> a
= new Foo
<string> (4);
63 Bar
<int> b
= new Bar
<int> ();
65 Bar
<X
> c
= new Bar
<X
> ();