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); }