DataBindingHandlerAttribute.cs 962 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /**
  2. * Namespace: System.Web.UI
  3. * Class: DataBindingHandlerAttribute
  4. *
  5. * Author: Gaurav Vaish
  6. * Maintainer: [email protected]
  7. * Contact: <[email protected]>, <[email protected]>
  8. * Implementation: yes
  9. * Status: 100%
  10. *
  11. * (C) Gaurav Vaish (2002)
  12. */
  13. using System;
  14. using System.Reflection;
  15. namespace System.Web.UI
  16. {
  17. [AttributeUsage(AttributeTargets.Class)]
  18. public sealed class DataBindingHandlerAttribute : Attribute
  19. {
  20. public static readonly DataBindingHandlerAttribute Default;
  21. private string handlerTypeName;
  22. public DataBindingHandlerAttribute()
  23. {
  24. handlerTypeName = String.Empty;
  25. }
  26. public DataBindingHandlerAttribute(string typeName)
  27. {
  28. handlerTypeName = typeName;
  29. }
  30. public DataBindingHandlerAttribute(Type type)
  31. {
  32. handlerTypeName = type.AssemblyQualifiedName;
  33. }
  34. public string HandlerTypeName
  35. {
  36. get
  37. {
  38. return handlerTypeName;
  39. }
  40. }
  41. }
  42. }