internal static string GetAssemblyQualifiedName(Type type, Func <Type, string> converter)
        {
            string str = (string)null;

            if (type != (Type)null)
            {
                if (converter != null)
                {
                    try
                    {
                        str = converter(type);
                    }
                    catch (Exception ex)
                    {
                        if (MultitargetingHelpers.IsSecurityOrCriticalException(ex))
                        {
                            throw;
                        }
                    }
                }
                if (str == null)
                {
                    str = MultitargetingHelpers.defaultConverter(type);
                }
            }
            return(str);
        }
 private static bool IsSecurityOrCriticalException(Exception ex)
 {
     if (!(ex is SecurityException))
     {
         return(MultitargetingHelpers.IsCriticalException(ex));
     }
     return(true);
 }
示例#3
0
 // Token: 0x06005048 RID: 20552 RVA: 0x0011A66D File Offset: 0x0011886D
 private static bool IsSecurityOrCriticalException(Exception ex)
 {
     return(ex is SecurityException || MultitargetingHelpers.IsCriticalException(ex));
 }