WebCategoryAttribute.cs 837 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /**
  2. * Namespace: System.Web
  3. * Class: WebCategoryAttribute
  4. *
  5. * Author: Gaurav Vaish
  6. * Maintainer: [email protected]
  7. * Contact: <[email protected]>, <[email protected]>
  8. * Implementation: yes
  9. * Status: 95%
  10. *
  11. * (C) Gaurav Vaish (2002)
  12. */
  13. using System;
  14. using System.ComponentModel;
  15. namespace System.Web
  16. {
  17. [AttributeUsage(AttributeTargets.All)]
  18. internal sealed class WebCategoryAttribute : CategoryAttribute
  19. {
  20. public WebCategoryAttribute(string category) : base(category)
  21. {
  22. }
  23. [MonoTODO]
  24. protected override string GetLocalizedString(string value)
  25. {
  26. string retVal = base.GetLocalizedString(value);
  27. if(retVal == null)
  28. {
  29. throw new NotImplementedException();
  30. //retVal = "Category_" + something I don't know how to get!
  31. }
  32. return retVal;
  33. }
  34. }
  35. }