* Page.cs: Don't tell the response to cache anymore. This is done
[mono.git] / mcs / class / System.Web / System.Web.UI / ControlBuilderAttribute.cs
1 //
2 // System.Web.UI.ControlBuilderAttribute.cs
3 //
4 // Authors:
5 //      Duncan Mak  (duncan@ximian.com)
6 //      Gonzalo Paniagua Javier (gonzalo@ximian.com)
7 //
8 // (C) 2002 Ximian, Inc. (http://www.ximian.com)
9
10 using System;
11
12 namespace System.Web.UI {
13
14         [AttributeUsage (AttributeTargets.Class)]
15         public sealed class ControlBuilderAttribute : Attribute
16         {
17                 Type builderType;
18                 public static readonly ControlBuilderAttribute Default = new ControlBuilderAttribute (null);
19                 
20                 public ControlBuilderAttribute (Type builderType)
21                 {
22                         this.builderType = builderType;
23                 }
24
25                 public Type BuilderType {
26                         get { return builderType; }
27                 }
28
29                 public override bool Equals (object obj)
30                 {
31                         if (!(obj is ControlBuilderAttribute))
32                                 return false;
33                         return ((ControlBuilderAttribute) obj).builderType == builderType;
34                 }
35
36                 public override int GetHashCode ()
37                 {
38                         return base.GetHashCode ();
39                 }
40
41                 public override bool IsDefaultAttribute ()
42                 {
43                         return Equals (Default);
44                 }
45         }
46 }
47