Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-604.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 789779e13ca775bd1e5218e32414bcd04713f833 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System;
using System.Reflection;

class Program {
	interface Iface1 {
		void IfaceMethod1 ();
	}

	interface Iface2 {
		void IfaceMethod2 ();
	}

	public class ImplementingExplicitInterfacesMembers : Iface1, Iface2 {
		void Iface1.IfaceMethod1 ()
		{
		}

		void Iface2.IfaceMethod2 ()
		{
		}
	}

	public static int Main ()
	{
		object[] o = typeof (ImplementingExplicitInterfacesMembers).GetMethods (BindingFlags.NonPublic | BindingFlags.Instance);
		foreach (MethodInfo mi in o) {
			if (mi.Name.IndexOf ('+') != -1)
				return 1;
			Console.WriteLine (mi.Name);
		}
		
		return 0;
	}
}