Exemplo n.º 1
0
        public static ExtendedTypeSystem GetTypeSystem(this ModuleDefinition md)
        {
            lock (_typeSystems)
            {
                if (!_typeSystems.TryGetValue(md, out var result))
                {
                    result = new ExtendedTypeSystem(md);
                    _typeSystems.Add(md, result);
                }

                return(result);
            }
        }
Exemplo n.º 2
0
 internal MethodEditor(MethodDefinition md)
 {
     _md         = md;
     _typeSystem = md.Module.GetTypeSystem();
 }
Exemplo n.º 3
0
 internal MethodEditor(MethodDefinition md)
 {
     _md = md;
     _md.Body?.SimplifyMacros();
     _typeSystem = md.Module.GetTypeSystem();
 }