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