public static BOLT11PaymentRequest TryParse(string str, out BOLT11PaymentRequest result, Network network)
 {
     result = null;
     try { result = Parse(str, network); }
     catch (FormatException) { throw; }
     return(result);
 }
 public static bool TryParse(string str, out BOLT11PaymentRequest result, Network network)
 {
     result = null;
     try
     {
         result = Parse(str, network);
         return(true);
     }
     catch
     {
         return(false);
     }
 }
 public static bool TryParse(string str, [MaybeNullWhen(false)] out BOLT11PaymentRequest result, Network network)
 {
     if (str is null)
     {
         throw new ArgumentNullException(nameof(str));
     }
     if (network is null)
     {
         throw new ArgumentNullException(nameof(network));
     }
     result = null;
     try
     {
         result = Parse(str, network);
         return(true);
     }
     catch
     {
         return(false);
     }
 }