SyntaxFix
Write A Post
Hire A Developer
Questions
You can use:
var dictionary = myList.ToDictionary(x => x);