System.ComponentModel.CategoryResourceAttribute.GetLocalizedString C# (CSharp) Method

GetLocalizedString() protected method

Returns the localized string from the resource file.
protected GetLocalizedString ( string value ) : string
value string
return string
		protected override string GetLocalizedString(string value)
		{
			if (this.localizedString == null)
			{
				var resourceManager = new ResourceManager(this.ResourceType);
				if (resourceManager != null)
				{
					try
					{
						this.localizedString = resourceManager.GetString(value, CultureInfo.CurrentUICulture);
					}
					catch (MissingManifestResourceException)
					{
						// Ignore invalid resources
					}
				}
			}

			return this.localizedString ?? base.GetLocalizedString(value);
		}
	}