Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

32 lines
533 B
C#

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 ();
}
}