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

GetLocalizedString() private method

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

			return this.localizedString ?? this.ResourceName;
		}
	}