convert list of string to dictionary

Code Example - convert list of string to dictionary

                
                        var res = list.ToDictionary(x => x, x => x);