コード例 #1
0
ファイル: AssemblyCache.cs プロジェクト: dox0/DotNet471RS3
 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);
 }
コード例 #2
0
 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);
 }