2009-01-30 Marek Habersack <mhabersack@novell.com>
[mono.git] / mcs / class / System.Web / System.Web.UI / WebHandlerParser.cs
index f069ef398e8148f6b55a5971f6cc98a71906a19d..3b40f71bbf3cad21f5c8ec5d6af7955bd63fcb10 100644 (file)
@@ -5,7 +5,7 @@
 //     Gonzalo Paniagua Javier (gonzalo@ximian.com)
 //
 // (C) 2003 Ximian, Inc (http://www.ximian.com)
-//
+// (C) 2008 Novell, Inc (http://novell.com/)
 
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 
 using System.Web;
 using System.Web.Compilation;
+using System.IO;
 
 namespace System.Web.UI
 {
        class WebHandlerParser : SimpleWebHandlerParser
        {
-               private WebHandlerParser (HttpContext context, string virtualPath, string physicalPath)
+               WebHandlerParser (HttpContext context, string virtualPath, string physicalPath)
                        : base (context, virtualPath, physicalPath)
                {
                }
 
+#if NET_2_0
+               internal WebHandlerParser (HttpContext context, string virtualPath, TextReader reader)
+                       : this (context, virtualPath, null, reader)
+               {
+               }
+               
+               internal WebHandlerParser (HttpContext context, string virtualPath, string physicalPath, TextReader reader)
+                       : base (context, virtualPath, physicalPath, reader)
+               {
+               }
+#endif
+
                public static Type GetCompiledType (HttpContext context, string virtualPath, string physicalPath)
                {
                        WebHandlerParser parser = new WebHandlerParser (context, virtualPath, physicalPath);