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;
 } 
Ejemplo n.º 2
0
 private static void Main(string[] args) {
     FootballSiteParser parser = new FootballSiteParser();
     List<FootballItem> items = parser.Parse();
 }