public string GetAssemblyCustomProperty(string propertyName) { AssemblyCustomPropertyAttribute[] customAttributes = (AssemblyCustomPropertyAttribute[])AssemblyDescriptionAttribute.GetCustomAttributes(m_AssemblyToUse, typeof(AssemblyCustomPropertyAttribute)); string customAttributeValue = ""; if (customAttributes != null) { foreach (AssemblyCustomPropertyAttribute customAttribute in customAttributes) { if (String.Compare(customAttribute.PropertyName, propertyName, true) == 0) { customAttributeValue = customAttribute.PropertyValue; break; } } } else { customAttributeValue = ""; } return(customAttributeValue); }