ControlBuilderAttribute.cs 738 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // System.Web.UI.ControlBuilderAttribute.cs
  3. //
  4. // Duncan Mak ([email protected])
  5. //
  6. // (C) Ximian, Inc.
  7. using System;
  8. namespace System.Web.UI {
  9. [AttributeUsage (AttributeTargets.Class)]
  10. public sealed class ControlBuilderAttribute : Attribute
  11. {
  12. Type builderType;
  13. public static readonly ControlBuilderAttribute Default;
  14. public ControlBuilderAttribute (Type builderType)
  15. {
  16. this.builderType = builderType;
  17. }
  18. public Type BuilderType {
  19. get { return builderType; }
  20. }
  21. [MonoTODO]
  22. public override bool Equals (object obj)
  23. {
  24. return false;
  25. }
  26. [MonoTODO]
  27. public override int GetHashCode ()
  28. {
  29. return 42;
  30. }
  31. [MonoTODO]
  32. public override bool IsDefaultAttribute ()
  33. {
  34. return false;
  35. }
  36. }
  37. }