System.ComponentModel.DescriptionResourceAttribute.GetLocalizedString C# (CSharp) 메소드

GetLocalizedString() 개인적인 메소드

Returns the localized string from the resource file.
private GetLocalizedString ( ) : string
리턴 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;
		}
	}