.ToSafeDictionary() extension method in csharp
The .ToDictionary()
extension will throw an argument exception if we have duplicate keys added to the dictionary.
The .ToDictionary()
extension will throw an argument exception if we have duplicate keys added to the dictionary.