13 public static int Main ()
20 protected static int DoSomething
<T
> (string s
, T t
, ref T t2
)
22 Console
.WriteLine ("s={0}", s
);
23 Console
.WriteLine ("t={0}", t
.ToString ());
24 Console
.WriteLine ("t2={0}", t2
.ToString ());
30 public static void ThisDoesNotWork ()
33 DoSomething ("abc", Enum
.Two
, ref e
);
36 public static void ThisWorksFine ()
39 DoSomething ("abc", Enum
.Two
, ref e
);
40 Console
.WriteLine ("e={0}", e
.ToString ());