コード例 #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;
    }