示例#1
0
        public void LoadAssembly(Stream stream)
        {
            var module = ModuleDefinition.ReadModule(stream);

            if (module.HasTypes)
            {
                foreach (var definition in module.GetTypes())
                {
                    var type = RuntimeType.Create(definition, this);
                    CacheTypeInternal(type);
                }
            }
        }