blob: bbf59b47b8a92f4eabb9a893530ff91b8effe368 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
using System;
using System.Reflection;
public class Generic<T>
{
public delegate void Delegate(Generic<T> proxy, T value);
}
class X
{
public static int Main ()
{
Type t = typeof (Generic<bool>);
MemberInfo[] mi = t.FindMembers (MemberTypes.NestedType,
BindingFlags.Static | BindingFlags.Public |
BindingFlags.DeclaredOnly, null, null);
return mi.Length - 1;
}
}
|