2 using System.Reflection;
3 using System.Runtime.InteropServices;
7 public static implicit operator BI (int i)
15 public static void M ([DefaultParameterValue (1 + 3)]BI step)
19 public static void M2 ([DefaultParameterValue (1)] object o)
23 public static int Main ()
25 var m = typeof (C).GetMethod ("M");
26 var p = m.GetParameters ()[0];
28 Console.WriteLine (p.Attributes);
29 if (p.Attributes != ParameterAttributes.HasDefault)
32 if ((int) p.DefaultValue != 4)
35 Console.WriteLine (p.DefaultValue);