10/19/2015 4:36:55 PM

C#

//a list of users (FirstName, LastName, Email, Id); var users = SomeApi.List_AllUsers(); var userDictionary = users.ToDictionary(x => x.Id, x => x.Email);