Nao consigo entender o porque o codigo esta compilando normalmente mas nao aparece nada na tela, somente fica a tela preta com o cursor piscando
namespace ByteBank.agencia
{
    class Program
    {
        static void Main(string[] args)
        {
            string url = "www.bytebank.com/cambio?moedaOrigem=real&moedaDestino=dolar&valor=1500";
            ExtratorValorDeArgumentosURL extrator = new ExtratorValorDeArgumentosURL(url);
            extrator.GetValor("moedaOrigem");
            extrator.GetValor("moedaDestino");
            extrator.GetValor("valor");
            Console.ReadKey();
        }
    }
}namespace ByteBank.agencia { public class ExtratorValorDeArgumentosURL { private readonly string _argumentos; public string URL { get; }
    public ExtratorValorDeArgumentosURL(string url)
    {
        if (string.IsNullOrEmpty(url))
        {
            throw new ArgumentException("O argumento uel nao pode ser nulo ou vazio");
        }
        URL = url;
        int indiceInterrogacao = url.IndexOf('?');
        _argumentos = url.Substring(indiceInterrogacao + 1);
    }
    public string GetValor(string nomeParametro)
    {
        string termo = nomeParametro + '=';
        int indiceTermo = _argumentos.IndexOf(termo);
        string resultado = _argumentos.Substring(indiceTermo + termo.Length);
        int indiceEComercial = resultado.IndexOf('&');
        if(indiceEComercial == -1)
        {
            return resultado;
        }
        return resultado.Remove(indiceEComercial);
    }
}}