Example #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)));
        }
Example #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));
        }
Example #3
0
        public StockQuote GetQuote(string ticker)
        {
            StockQuote quote = new StockQuote(ticker);

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

            return quote;
        }