Advertisement
Guest User

Untitled

a guest
May 29th, 2015
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.31 KB | None | 0 0
  1.  
  2. Dictionary<string, Dictionary<string, int>> definitionen =
  3.     File.ReadAllLines ("test.txt").Select (line => line.Split (';')).ToDictionary (
  4.         linearr => linearr [0].ToLower () + linearr [1],
  5.         linearr => linearr.Skip(2).Select ((e, s) => new { e = e, s = s }).ToDictionary (o => o.e.Trim (), o => o.s - 2)
  6.     );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement