Thursday, November 10, 2011

.ToDictionary

Dictionary<Guid, string> idsAndNamesOfPeople = this.Repository.FindAll(PersonSpecs()).OrderBy(p => p.Name).ToDictionary(p => p.Id, p => p.Name.ToString());

No comments:

Post a Comment