.NET: Convert a List to a Dictionary

10/19/2015 4:36:55 PM
//a list of users (FirstName, LastName, Email, Id);
var users = SomeApi.List_AllUsers();
    
var userDictionary = users.ToDictionary(x => x.Id, x => x.Email);