Example #1
0
        public ElaList AssemblyModules(ElaModule mod)
        {
            var vm = mod.GetCurrentMachine();
            var asm = vm.Assembly;
            var list = new List<ElaValue>();

            for (var i = 0; i < asm.ModuleCount; i++)
                list.Add(new ElaValue(new ElaModule(i, vm)));

            return ElaList.FromEnumerable(list);
        }
Example #2
0
 public string ModuleName(ElaModule mod)
 {
     return mod.GetModuleName();
 }
Example #3
0
 public int ModuleHandle(ElaModule mod)
 {
     return mod.Handle;
 }
Example #4
0
 public int AssemblyModuleCount(ElaModule mod)
 {
     return mod.GetCurrentMachine().Assembly.ModuleCount;
 }
Example #5
0
 public ElaModule AssemblyMainModule(ElaModule mod)
 {
     var vm = mod.GetCurrentMachine();
     return new ElaModule(0, vm);
 }
Example #6
0
 public ElaList ModuleReferences(ElaModule mod)
 {
     return ElaList.FromEnumerable(mod.GetReferences());
 }
Example #7
0
 public ElaList ModuleNames(ElaModule mod)
 {
     return ElaList.FromEnumerable(mod.GetVariables());
 }