// Constructors
 public ParseErrorEnumerator(ManifestParseErrors manifestParseErrors)
 {
 }
	// Constructors
	public ParseErrorEnumerator(ManifestParseErrors manifestParseErrors) {}
 private void LoadCMSFromStream(Stream stream)
 {
     System.Deployment.Internal.Isolation.Manifest.ICMS icms = null;
     int length;
     ManifestParseErrors callback = new ManifestParseErrors();
     try
     {
         length = (int) stream.Length;
         this._rawXmlBytes = new byte[length];
         if (stream.CanSeek)
         {
             stream.Seek(0L, SeekOrigin.Begin);
         }
         stream.Read(this._rawXmlBytes, 0, length);
     }
     catch (IOException exception)
     {
         throw new InvalidDeploymentException(ExceptionTypes.ManifestParse, Resources.GetString("Ex_ManifestReadException"), exception);
     }
     try
     {
         icms = (System.Deployment.Internal.Isolation.Manifest.ICMS) System.Deployment.Internal.Isolation.IsolationInterop.CreateCMSFromXml(this._rawXmlBytes, (uint) length, callback, ref System.Deployment.Internal.Isolation.IsolationInterop.IID_ICMS);
     }
     catch (COMException exception2)
     {
         StringBuilder builder = new StringBuilder();
         foreach (ManifestParseErrors.ManifestParseError error in callback)
         {
             builder.AppendFormat(CultureInfo.CurrentUICulture, Resources.GetString("Ex_ManifestParseCMSErrorMessage"), new object[] { error.hr, error.StartLine, error.nStartColumn, error.ErrorStatusHostFile });
         }
         throw new InvalidDeploymentException(ExceptionTypes.ManifestParse, string.Format(CultureInfo.CurrentUICulture, Resources.GetString("Ex_ManifestCMSParsingException"), new object[] { builder.ToString() }), exception2);
     }
     catch (SEHException exception3)
     {
         StringBuilder builder2 = new StringBuilder();
         foreach (ManifestParseErrors.ManifestParseError error2 in callback)
         {
             builder2.AppendFormat(CultureInfo.CurrentUICulture, Resources.GetString("Ex_ManifestParseCMSErrorMessage"), new object[] { error2.hr, error2.StartLine, error2.nStartColumn, error2.ErrorStatusHostFile });
         }
         throw new InvalidDeploymentException(ExceptionTypes.ManifestParse, string.Format(CultureInfo.CurrentUICulture, Resources.GetString("Ex_ManifestCMSParsingException"), new object[] { builder2.ToString() }), exception3);
     }
     catch (ArgumentException exception4)
     {
         StringBuilder builder3 = new StringBuilder();
         foreach (ManifestParseErrors.ManifestParseError error3 in callback)
         {
             builder3.AppendFormat(CultureInfo.CurrentUICulture, Resources.GetString("Ex_ManifestParseCMSErrorMessage"), new object[] { error3.hr, error3.StartLine, error3.nStartColumn, error3.ErrorStatusHostFile });
         }
         throw new InvalidDeploymentException(ExceptionTypes.ManifestParse, string.Format(CultureInfo.CurrentUICulture, Resources.GetString("Ex_ManifestCMSParsingException"), new object[] { builder3.ToString() }), exception4);
     }
     if (icms == null)
     {
         throw new InvalidDeploymentException(ExceptionTypes.ManifestParse, Resources.GetString("Ex_IsoNullCmsCreated"));
     }
     this._cms = icms;
 }