Files
mono/mcs/class/System.Web/System.Web.UI/EmptyControlCollection.cs
T
Gonzalo Paniagua Javier 802d88b3f7 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
2002-08-19 00:18:18 +00:00

31 lines
589 B
C#
Executable File

//
// System.Web.UI.EmptyControlCollection.cs
//
// Duncan Mak ([email protected])
//
// (C) Ximian, Inc.
//
using System;
namespace System.Web.UI {
public class EmptyControlCollection : ControlCollection
{
public EmptyControlCollection (Control owner)
: base (owner)
{
}
public override void Add (Control child)
{
throw new NotSupportedException ("Control " + Owner.ID + " does not allow children");
}
public override void AddAt (int index, Control child)
{
throw new NotSupportedException ("Control " + Owner.ID + " does not allow children");
}
}
}