add ISafeSerializationData
[mcs.git] / tests / test-769.cs
blobcfe9e41317be06902c485fde461e808bccb24cd1
1 using System;
2 using System.Reflection;
4 public interface I
6 void Clear ();
9 public class C : I
11 public void Clear () { }
12 void I.Clear () { }
14 public static int Main ()
16 var m1 = typeof (C).GetMethod ("Clear");
17 Console.WriteLine (m1.Attributes);
18 if (m1.Attributes != (MethodAttributes.Public | MethodAttributes.HideBySig))
19 return 1;
21 var m2 = typeof (C).GetMethod ("I.Clear", BindingFlags.NonPublic | BindingFlags.Instance);
22 Console.WriteLine (m2.Attributes);
23 if (m2.Attributes != (MethodAttributes.Private | MethodAttributes.HideBySig | MethodAttributes.Final | MethodAttributes.Virtual | MethodAttributes.VtableLayoutMask))
24 return 2;
26 return 0;