blob: 4ef39b980e5e7d9116d6844b25586d243ce6bd36 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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, true)
{
}
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");
}
}
}
|