2010-05-11 Rodrigo Kumpera <rkumpera@novell.com>
[mono.git] / mono / tests / dbnull-missing.cs
bloba4f9a2d5e604a982cd55d7666300e22a508d776c
1 using System;
2 using System.Reflection;
3 using System.Runtime.InteropServices;
5 class X {
6 static int Main ()
8 ParameterInfo [] pi = typeof (X).GetMethod ("TakesInt").GetParameters ();
10 Console.WriteLine ("{0} and {1}", pi [0].DefaultValue.GetType (), pi [1].DefaultValue.GetType ());
11 if (pi [0].DefaultValue.GetType () != typeof (DBNull))
12 return 1;
13 if (pi [1].DefaultValue.GetType () != typeof (Missing))
14 return 2;
15 return 0;
18 public static void TakesInt (int b, [Optional] int a)