diff options
Diffstat (limited to 'mcs/class/System.Web/System.Web.UI/EmptyControlCollection.cs')
-rwxr-xr-x | mcs/class/System.Web/System.Web.UI/EmptyControlCollection.cs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/mcs/class/System.Web/System.Web.UI/EmptyControlCollection.cs b/mcs/class/System.Web/System.Web.UI/EmptyControlCollection.cs new file mode 100755 index 00000000000..3bf0ec4f731 --- /dev/null +++ b/mcs/class/System.Web/System.Web.UI/EmptyControlCollection.cs @@ -0,0 +1,30 @@ +// +// System.Web.UI.EmptyControlCollection.cs +// +// Duncan Mak (duncan@ximian.com) +// +// (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 HttpException (); + } + + public override void AddAt (int index, Control child) + { + throw new HttpException (); + } + } +} |