How to check if a list in a dictionary has duplicates in C#? – Asp.net
I have a dictionary Dictionary<Enum, List<string>> test = new(); I would like to check if the value (List) of this dictionary has duplicates on a specific key. Dictionary[Key1] = [x, x, y, z] --> this should return that the list…