diff options
Diffstat (limited to 'BCT/BytecodeTranslator/Program.cs')
-rw-r--r-- | BCT/BytecodeTranslator/Program.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/BCT/BytecodeTranslator/Program.cs b/BCT/BytecodeTranslator/Program.cs index 26696250..f9e46d0d 100644 --- a/BCT/BytecodeTranslator/Program.cs +++ b/BCT/BytecodeTranslator/Program.cs @@ -14,7 +14,9 @@ using Microsoft.Cci.Contracts; using Microsoft.Cci.ILToCodeModel;
namespace BytecodeTranslator {
- class BCT {
+ public class BCT {
+
+ public static IMetadataHost Host;
static int Main(string[] args) {
@@ -38,6 +40,7 @@ namespace BytecodeTranslator { static int DoRealWork(string assemblyName) {
var host = new Microsoft.Cci.ILToCodeModel.CodeContractAwareHostEnvironment();
+ Host = host;
IModule/*?*/ module = host.LoadUnitFrom(assemblyName) as IModule;
if (module == null || module == Dummy.Module || module == Dummy.Assembly) {
|