private static MetadataReaderHost GetHostFromOptions(ILGarbageCollectorOptions options) { MetadataReaderHost host; switch (options.profile) { case TargetProfile.Phone: host = new PhoneMetadataHost(GetRootAssemblyParentDirectoriesFromOptions(options)); break; default: host = new PeReader.DefaultHost(); break; } return(host); }
private static MetadataReaderHost GetHostFromOptions(ILGarbageCollectorOptions options) { MetadataReaderHost host; switch (options.profile) { case TargetProfile.Phone: host = new PhoneMetadataHost(GetRootAssemblyParentDirectoriesFromOptions(options)); break; default: host = new PeReader.DefaultHost(); break; } return host; }