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