Exemple #1
0
        public StockQuote[] GetPortfolio(string[] portfolioTickers)
        {
            ArrayList tickers = new ArrayList();

            foreach (string stockTicker in portfolioTickers)
            {
                StockQuote stockQuote = new StockQuote(stockTicker);
                tickers.Add(stockQuote);
            }

            return((StockQuote[])tickers.ToArray(typeof(StockQuote)));
        }
Exemple #2
0
        public StockQuote[] GetPortfolio(string[] portfolioTickers)
        {

            ArrayList tickers = new ArrayList();

            foreach (string stockTicker in portfolioTickers)
            {
                StockQuote stockQuote = new StockQuote(stockTicker);
                tickers.Add(stockQuote);
            }

            return (StockQuote[])tickers.ToArray(typeof(StockQuote));
        }
Exemple #3
0
        public StockQuote GetQuote(string ticker)
        {
            StockQuote quote = new StockQuote(ticker);

            return(quote);
        }
Exemple #4
0
        public StockQuote GetQuote(string ticker)
        {
            StockQuote quote = new StockQuote(ticker);

            return quote;
        }