forked from pythonnet/pythonnet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmoduletest.cs
More file actions
30 lines (27 loc) · 683 Bytes
/
Copy pathmoduletest.cs
File metadata and controls
30 lines (27 loc) · 683 Bytes
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
using System;
using System.Reflection;
using System.Threading;
namespace Python.Test
{
public class ModuleTest
{
private static Thread _thread;
public static void RunThreads()
{
_thread = new Thread(() =>
{
AppDomain appdomain = AppDomain.CurrentDomain;
Assembly[] assemblies = appdomain.GetAssemblies();
foreach (Assembly assembly in assemblies)
{
assembly.GetTypes();
}
});
_thread.Start();
}
public static void JoinThreads()
{
_thread.Join();
}
}
}