SRCategoryAttribute.cs 732 B

12345678910111213141516171819202122232425262728
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT license.
  3. // See the LICENSE file in the project root for more information.
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Text;
  7. using System.ComponentModel;
  8. namespace FastReport.DataVisualization.Charting
  9. {
  10. [AttributeUsage(AttributeTargets.All)]
  11. internal sealed class SRCategoryAttribute : CategoryAttribute
  12. {
  13. // Methods
  14. public SRCategoryAttribute(string category)
  15. : base(category)
  16. {
  17. }
  18. protected override string GetLocalizedString(string value)
  19. {
  20. return SR.Keys.GetString(value);
  21. }
  22. }
  23. }