File: Common\SRCategoryAttribute.cs
Project: ndp\fx\src\DataVisualization\System.Web.DataVisualization.csproj (System.Web.DataVisualization)
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
 
#if Microsoft_CONTROL
namespace System.Windows.Forms.DataVisualization.Charting
#else
namespace System.Web.UI.DataVisualization.Charting
#endif
{
    [AttributeUsage(AttributeTargets.All)]
    internal sealed class SRCategoryAttribute : CategoryAttribute
    {
        // Methods
        public SRCategoryAttribute(string category)
            : base(category)
        {
        }
 
        protected override string GetLocalizedString(string value)
        {
            return SR.Keys.GetString(value);
        }
    }
}