예제 #1
0
        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);
        }
예제 #2
0
    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;
    }