Forráskód Böngészése

2002-08-18 Gonzalo Paniagua Javier <[email protected]>

	* CompiledTemplateBuilder.cs: InstantiateIn is virtual.
	* EmptyControlCollection.cs: throw correct exception.
	* LosFormatter.cs: stubbed out.
	* OutputCacheLocation.cs: little fix.

svn path=/trunk/mcs/; revision=6728
Gonzalo Paniagua Javier 23 éve
szülő
commit
802d88b3f7

+ 7 - 0
mcs/class/System.Web/System.Web.UI/ChangeLog

@@ -1,3 +1,10 @@
+2002-08-18  Gonzalo Paniagua Javier <[email protected]>
+
+	* CompiledTemplateBuilder.cs: InstantiateIn is virtual.
+	* EmptyControlCollection.cs: throw correct exception.
+	* LosFormatter.cs: stubbed out.
+	* OutputCacheLocation.cs: little fix.
+
 2002-08-16  Gonzalo Paniagua Javier <[email protected]>
 
 	* System.Web.UI/ApplicationFileParser.cs:

+ 1 - 1
mcs/class/System.Web/System.Web.UI/CompiledTemplateBuilder.cs

@@ -20,7 +20,7 @@ public class CompiledTemplateBuilder : ITemplate
 		this.templateMethod = templateMethod;
 	}
 
-	public void InstantiateIn (Control ctrl)
+	public virtual void InstantiateIn (Control ctrl)
 	{
 		templateMethod (ctrl);
 	}

+ 2 - 2
mcs/class/System.Web/System.Web.UI/EmptyControlCollection.cs

@@ -19,12 +19,12 @@ namespace System.Web.UI {
 		
 		public override void Add (Control child)
 		{
-			throw new HttpException ();
+			throw new NotSupportedException ("Control " + Owner.ID + " does not allow children");
 		}
 
 		public override void AddAt (int index, Control child)
 		{
-			throw new HttpException ();
+			throw new NotSupportedException ("Control " + Owner.ID + " does not allow children");
 		}
 	}
 }

+ 54 - 0
mcs/class/System.Web/System.Web.UI/LosFormatter.cs

@@ -0,0 +1,54 @@
+//
+// System.Web.UI.PageParser
+//
+// Authors:
+//	Gonzalo Paniagua Javier ([email protected])
+//
+// (C) 2002 Ximian, Inc (http://www.ximian.com)
+//
+
+using System;
+using System.IO;
+
+namespace System.Web.UI
+{
+	public sealed class LosFormatter
+	{
+		[MonoTODO]
+		public LosFormatter ()
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public object Deserialize (Stream stream)
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public object Deserialize (TextReader input)
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public object Deserialize (string input)
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public void Serialize (Stream stream, object value)
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public void Serialize (TextWriter output, object value)
+		{
+			throw new NotImplementedException ();
+		}
+	}
+}
+

+ 2 - 2
mcs/class/System.Web/System.Web.UI/OutputCacheLocation.cs

@@ -17,7 +17,7 @@ namespace System.Web.UI
                 Any,
                 Client,
                 Downstream,
-                None,
-                Server
+                Server,
+                None
         }
 }