====== C# List to Dictionary ====== List listProducts = new List { new Product { ID= 1001, Name = "Mobile", Price = 800 }, new Product { ID= 1002, Name = "Laptop", Price = 900 }, new Product { ID= 1003, Name = "Desktop", Price = 800 } }; Dictionary productsDictionary = listProducts.ToDictionary(x => x.ID, x => x.Name); [[https://dotnettutorials.net/lesson/todictionary-method/|Quelle]] {{tag>[C# .NET List Dictionary]}}