internal static AjaxFrameworkAssemblyAttribute SafeGetAjaxFrameworkAssemblyAttribute(ICustomAttributeProvider attributeProvider) { try { foreach (Attribute attribute in attributeProvider.GetCustomAttributes(inherit: false)) { AjaxFrameworkAssemblyAttribute ajaxFrameworkAttribute = attribute as AjaxFrameworkAssemblyAttribute; if (ajaxFrameworkAttribute != null) { return(ajaxFrameworkAttribute); } } } catch { // Bug 34311: If we are unable to load the attribute, don't throw. } return(null); }
internal static AjaxFrameworkAssemblyAttribute SafeGetAjaxFrameworkAssemblyAttribute(ICustomAttributeProvider attributeProvider) { try { foreach (Attribute attribute in attributeProvider.GetCustomAttributes(inherit: false)) { AjaxFrameworkAssemblyAttribute ajaxFrameworkAttribute = attribute as AjaxFrameworkAssemblyAttribute; if (ajaxFrameworkAttribute != null) { return(ajaxFrameworkAttribute); } } } catch { // } return(null); }