private static IssuerNameRegistry GetIssuerNameRegistry(IssuerNameRegistryElement element)
 {
     try
     {
         Type type = string.IsNullOrEmpty(element.Type) ? DefaultIssuerNameRegistryType : Type.GetType(element.Type);
         return(TypeResolveHelper.Resolve <IssuerNameRegistry>(element, type));
     }
     catch (ArgumentException inner)
     {
         throw DiagnosticUtility.ThrowHelperConfigurationError(
                   element, ConfigurationStrings.IssuerNameRegistry, inner);
     }
 }
 public static T Resolve <T>(CustomTypeElement customTypeElement) where T : class
 {
     return(TypeResolveHelper.Resolve <T>(customTypeElement, customTypeElement.Type));
 }