2010-04-13 Sebastien Pouliot <sebastien@ximian.com>
[mono-project.git] / mcs / tests / test-472.cs
blob839a83c5f22045b8c9a72dcd281ed179bfacb021
1 using System;
2 using System.Reflection;
4 class Test
6 public int Prop {
7 get { return prop; }
8 set { prop = value; }
11 int prop = 0;
13 static int Main()
15 MethodInfo mi = typeof (Test).GetMethod ("set_Prop");
16 if (mi.GetParameters ().Length != 1)
17 return 1;
18 if ((mi.GetParameters ()[0].Name) != "value")
19 return 2;
21 Console.WriteLine ("OK");
22 return 0;