public void LoadSettingsFromConfiguration(IServiceProvider services, Platform platform)
 {
     platform.Name = this.Name;
     if (!string.IsNullOrEmpty(MemoryMapFile))
     {
         platform.MemoryMap = MemoryMap_v1.LoadMemoryMapFromFile(services, MemoryMapFile, platform);
     }
     platform.Description = this.Description;
     platform.Heuristics  = LoadHeuristics(this.Heuristics);
 }
        public IPlatform Load(IServiceProvider services, IProcessorArchitecture arch)
        {
            var type = Type.GetType(TypeName);

            if (type == null)
            {
                throw new TypeLoadException(
                          string.Format("Unable to load {0} environment.", Description));
            }
            var platform = (Platform)Activator.CreateInstance(type, services, arch);

            platform.Name = this.Name;
            if (!string.IsNullOrEmpty(MemoryMapFile))
            {
                platform.MemoryMap = MemoryMap_v1.LoadMemoryMapFromFile(services, MemoryMapFile, platform);
            }
            platform.Description = this.Description;
            return(platform);
        }