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

TagPrefixAttribute.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: 0dc56d241f520777bb2a332c77de309f232aed75 (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
31
32
33
34
35
36
37
//
// System.Web.UI.TagPrefixAttribute.cs
//
// Duncan Mak  (duncan@ximian.com)
//
// (C) Ximian, Inc.
//

using System;

namespace System.Web.UI {

	[AttributeUsage (AttributeTargets.Assembly)]
	public sealed class TagPrefixAttribute : Attribute
	{
		string namespaceName;
		string tagPrefix;
		
		public TagPrefixAttribute (string namespaceName,
					   string tagPrefix)
		{
			if (namespaceName == null || tagPrefix == null)
				throw new ArgumentNullException ();

			this.namespaceName = namespaceName;
			this.tagPrefix = tagPrefix;
		}

		public string NamespaceName {
			get { return namespaceName; }
		}

		public string TagPrefix {
			get { return tagPrefix; }
		}
	}
}