public List<FootballItem> GetItems() { if (null == _items) { lock (_lockObj) { if (null == _items) { FootballSiteParser parser = new FootballSiteParser(); List<FootballItem> res = parser.Parse(); _items = res; } } } return _items; }
private static void Main(string[] args) { FootballSiteParser parser = new FootballSiteParser(); List<FootballItem> items = parser.Parse(); }