2 using System
.Reflection
;
5 public const decimal MinValue
= -79228162514264337593543950335m
;
6 public static void Main ()
8 System
.Console
.WriteLine ("Compiler said value is {0}", MinValue
);
9 FieldInfo fi
= typeof (Dec
).GetField ("MinValue");
10 Decimal d
= (Decimal
) fi
.GetValue (fi
);
11 System
.Console
.WriteLine ("Reflection said value is {0}", d
);
14 throw new Exception ("decimal constant not initialized");