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

gtest-340.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 25077db5edaa7984a6c0952b44ff0c6db813f3a8 (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
using System;
using System.IO;
using System.Reflection;

class Tests
{
	public static T [] FindAll<T> (T [] array, Predicate<T> match)
	{
		return new T [0];
	}

	private bool ProtectedOnly (MemberInfo input)
	{
		return false;
	}

	public MemberInfo [] foo ()
	{
		string name = "FOO";
		MemberInfo [] res = FindAll (typeof (int).GetMember (name,
			BindingFlags.Static | BindingFlags.Instance | BindingFlags.NonPublic),
			ProtectedOnly);
		return res;
	}

	public static void Main (String [] args)
	{
		new Tests ().foo ();
	}
}