Welcome to mirror list, hosted at ThFree Co, Russian Federation.

EmptyControlCollection.cs « System.Web.UI « System.Web « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3bf0ec4f7312858e3f9105f5deb5ed250372450a (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)
		{
		}
		
		public override void Add (Control child)
		{
			throw new HttpException ();
		}

		public override void AddAt (int index, Control child)
		{
			throw new HttpException ();
		}
	}
}