a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
32 lines
533 B
C#
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 ();
|
|
}
|
|
}
|
|
|