コード例 #1
0
ファイル: roottypes.cs プロジェクト: famousthom/monodevelop
		public void Create (AssemblyDefinition assembly, ModuleBuilder moduleBuilder)
		{
			this.assembly = assembly;
			builder = moduleBuilder;
		}
コード例 #2
0
ファイル: roottypes.cs プロジェクト: famousthom/monodevelop
		public void SetDeclaringAssembly (AssemblyDefinition assembly)
		{
			// TODO: This setter is quite ugly but I have not found a way around it yet
			this.assembly = assembly;
		}
コード例 #3
0
ファイル: reflection.cs プロジェクト: carlosaml/monodevelop
		public void LoadModules (AssemblyDefinition assembly)
		{
			if (RootContext.Modules.Count == 0)
				return;

			foreach (var module in RootContext.Modules) {
				LoadModule (assembly, module);
			}
		}
コード例 #4
0
ファイル: reflection.cs プロジェクト: carlosaml/monodevelop
		void LoadModule (AssemblyDefinition assembly, string module)
		{
			string total_log = "";

			try {
				try {
					assembly.AddModule (module);
				} catch (FileNotFoundException) {
					bool err = true;
					foreach (string dir in paths) {
						string full_path = Path.Combine (dir, module);
						if (!module.EndsWith (".netmodule"))
							full_path += ".netmodule";

						try {
							assembly.AddModule (full_path);
							err = false;
							break;
						} catch (FileNotFoundException ff) {
							total_log += ff.FusionLog;
						}
					}
					if (err) {
						Error6 (module, total_log);
						return;
					}
				}
			} catch (BadImageFormatException f) {
				Error9 ("module", f.FileName, f.FusionLog);
			} catch (FileLoadException f) {
				Error9 ("module", f.FileName, f.FusionLog);
			}
		}
コード例 #5
0
ファイル: roottypes.cs プロジェクト: mpareja/mono
		public AssemblyDefinition MakeExecutable (string name, string fileName)
		{
			assembly = new AssemblyDefinition (this, name, fileName);
			return assembly;
		}
コード例 #6
0
 public void SetDeclaringAssembly(AssemblyDefinition assembly)
 {
     // TODO: This setter is quite ugly but I have not found a way around it yet
     this.assembly = assembly;
 }
コード例 #7
0
 public void Create(AssemblyDefinition assembly, ModuleBuilder moduleBuilder)
 {
     this.assembly = assembly;
     builder       = moduleBuilder;
 }