Is there a built-in function for converting a string array into a dictionary of strings or do you need to do a loop here?
If you need a dictionary without values, you might need a HashSet:
var hashset = new HashSet(stringsArray);