예제 #1
0
 HttpParseException(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     line        = info.GetInt32("_line");
     virtualPath = info.GetString("_virtualPath");
     errors      = info.GetValue("_parserErrors", typeof(ParserErrorCollection)) as ParserErrorCollection;
 }
예제 #2
0
		HttpParseException (SerializationInfo info, StreamingContext context)
			: base (info, context)
                {
			line = info.GetInt32 ("_line");
			virtualPath = info.GetString ("_virtualPath");
			errors = info.GetValue ("_parserErrors", typeof (ParserErrorCollection)) as ParserErrorCollection;
                }
예제 #3
0
 private HttpParseException(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     _virtualPath  = (VirtualPath)info.GetValue("_virtualPath", typeof(VirtualPath));
     _line         = info.GetInt32("_line");
     _parserErrors = (ParserErrorCollection)info.GetValue("_parserErrors", typeof(ParserErrorCollection));
 }
예제 #4
0
 public void AddRange(ParserErrorCollection value)
 {
     if (value == null)
     {
         throw new ArgumentNullException("value");
     }
     foreach (ParserError error in value)
     {
         this.Add(error);
     }
 }
 public void AddRange(ParserErrorCollection value)
 {
     if (value == null)
     {
         throw new ArgumentNullException("value");
     }
     foreach (ParserError error in value)
     {
         this.Add(error);
     }
 }
예제 #6
0
		public void AddRange (ParserErrorCollection collection)
		{
			InnerList.AddRange (collection);
		}
예제 #7
0
  private HttpParseException(SerializationInfo info, StreamingContext context)
     :base(info, context) {
      _virtualPath = (VirtualPath)info.GetValue("_virtualPath", typeof(VirtualPath));
     _line = info.GetInt32("_line");
     _parserErrors = (ParserErrorCollection)info.GetValue("_parserErrors", typeof(ParserErrorCollection));
 }
예제 #8
0
 public void AddRange(ParserErrorCollection collection)
 {
     InnerList.AddRange(collection);
 }
예제 #9
0
 public void AddRange(ParserErrorCollection value)
 {
     InnerList.AddRange(value);
 }
 private bool CompileNonDependentBuildProviders(ICollection buildProviders)
 {
     IDictionary dictionary = new Hashtable();
     ArrayList list = null;
     AssemblyBuilder builder = null;
     bool flag = false;
     foreach (System.Web.Compilation.BuildProvider provider in buildProviders)
     {
         ICollection is2;
         if (this.IsBuildProviderSkipable(provider))
         {
             continue;
         }
         if (!BuildManager.ThrowOnFirstParseError)
         {
             InternalBuildProvider provider2 = provider as InternalBuildProvider;
             if (provider2 != null)
             {
                 provider2.ThrowOnFirstParseError = false;
             }
         }
         CompilerType compilerTypeFromBuildProvider = null;
         try
         {
             compilerTypeFromBuildProvider = System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(provider);
         }
         catch (HttpParseException exception)
         {
             if (!this._ignoreProvidersWithErrors)
             {
                 flag = true;
                 if (this._firstException == null)
                 {
                     this._firstException = exception;
                 }
                 if (this._parserErrors == null)
                 {
                     this._parserErrors = new ParserErrorCollection();
                 }
                 this._parserErrors.AddRange(exception.ParserErrors);
             }
             continue;
         }
         catch
         {
             if (!this._ignoreProvidersWithErrors)
             {
                 throw;
             }
             continue;
         }
         AssemblyBuilder builder2 = builder;
         if (compilerTypeFromBuildProvider == null)
         {
             if (builder != null)
             {
                 goto Label_00E6;
             }
             if (list == null)
             {
                 list = new ArrayList();
             }
             list.Add(provider);
             continue;
         }
         builder2 = (AssemblyBuilder) dictionary[compilerTypeFromBuildProvider];
     Label_00E6:
         is2 = provider.GetGeneratedTypeNames();
         if (((builder2 == null) || builder2.IsBatchFull) || builder2.ContainsTypeNames(is2))
         {
             if (builder2 != null)
             {
                 this.CompileAssemblyBuilder(builder2);
             }
             AssemblyBuilder builder3 = compilerTypeFromBuildProvider.CreateAssemblyBuilder(this._compConfig, this._referencedAssemblies);
             dictionary[compilerTypeFromBuildProvider] = builder3;
             if ((builder == null) || (builder == builder2))
             {
                 builder = builder3;
             }
             builder2 = builder3;
         }
         builder2.AddTypeNames(is2);
         builder2.AddBuildProvider(provider);
     }
     if (flag)
     {
         return false;
     }
     if (list != null)
     {
         bool flag2 = builder == null;
         foreach (System.Web.Compilation.BuildProvider provider3 in list)
         {
             ICollection generatedTypeNames = provider3.GetGeneratedTypeNames();
             if (((builder == null) || builder.IsBatchFull) || builder.ContainsTypeNames(generatedTypeNames))
             {
                 if (builder != null)
                 {
                     this.CompileAssemblyBuilder(builder);
                 }
                 builder = CompilerType.GetDefaultAssemblyBuilder(this._compConfig, this._referencedAssemblies, this._vdir.VirtualPathObject, null);
                 flag2 = true;
             }
             builder.AddTypeNames(generatedTypeNames);
             builder.AddBuildProvider(provider3);
         }
         if (flag2)
         {
             this.CompileAssemblyBuilder(builder);
         }
     }
     foreach (AssemblyBuilder builder4 in dictionary.Values)
     {
         this.CompileAssemblyBuilder(builder4);
     }
     return true;
 }