예제 #1
0
        public static bool TryParse(string str, out WalletId walletId)
        {
            walletId = null;
            WalletId w     = new WalletId();
            var      match = _WalletStoreRegex.Match(str);

            if (!match.Success)
            {
                return(false);
            }
            w.StoreId    = match.Groups[1].Value;
            w.CryptoCode = match.Groups[2].Value.ToUpperInvariant();
            walletId     = w;
            return(true);
        }
예제 #2
0
        public static bool TryParse(string str, out WalletId walletId)
        {
            if (str == null)
            {
                throw new ArgumentNullException(nameof(str));
            }
            walletId = null;
            WalletId w     = new WalletId();
            var      match = _WalletStoreRegex.Match(str);

            if (!match.Success)
            {
                return(false);
            }
            w.StoreId     = match.Groups[1].Value;
            w.bitcoinCode = match.Groups[2].Value.ToUpperInvariant();
            walletId      = w;
            return(true);
        }