Advertisement
TankorSmash

Untitled

Jan 11th, 2013
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.67 KB | None | 0 0
  1.             int count = 0;
  2.             foreach (Movie movie in movie_list)
  3.             {
  4.                 var omdb =
  5.                     omdb_list.FirstOrDefault(
  6.                         om => (movie.short_title == om.title && movie.year == om.year));
  7.                 matches_MtO[movie] = omdb;
  8.  
  9.                 Tools.TraceLine("count {0}", count);
  10.                 if (omdb != null)
  11.                 {
  12.                     Tools.TraceLine("Omdb {0}, Movie {1}", omdb.title,
  13.                                     movie.short_title);
  14.                 }
  15.                 else { Tools.TraceLine("Movie {0}, had no match", movie.short_title);}
  16.                 count++;
  17.  
  18.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement