3 using System.Reflection;
9 string assemblyFile = Path.Combine (AppDomain.CurrentDomain.BaseDirectory, "bug-81691-b.dll");
10 Assembly assembly = Assembly.LoadFile (assemblyFile);
12 int numExceptions = 0;
14 for (i = 0; i < 100000; ++i) {
17 Type type = assembly.GetType ("NS.B.TestB");
18 FieldInfo field =type.GetField ("testb", BindingFlags.NonPublic | BindingFlags.Static);
19 if (field.FieldType == null)
21 } catch (TypeLoadException ex) {
24 } catch (FileNotFoundException ex) {
29 if (numExceptions == 100000)