Castle.Windsor.Configuration.Interpreters.XmlInterpreter.GetRequiredAttributeValue C# (CSharp) Method

GetRequiredAttributeValue() private static method

private static GetRequiredAttributeValue ( IConfiguration configuration, string attributeName ) : string
configuration IConfiguration
attributeName string
return string
		private static string GetRequiredAttributeValue(IConfiguration configuration, string attributeName)
		{
			String value = configuration.Attributes[attributeName];

			if (string.IsNullOrEmpty(value))
			{
				String message = String.Format("{0} elements expects required non blank attribute {1}",
				                               configuration.Name, attributeName);

				throw new Exception(message);
			}

			return value;
		}