.ToSafeDictionary() extension method in csharp
The .ToDictionary()
extension will throw an argument exception if we have duplicate keys added to the dictionary.
Karthik is a passionate Full Stack developer working primarily on .NET Core, microservices, distributed systems, VUE and JavaScript. He also loves NBA basketball so you might find some NBA examples in his posts and he owns this blog.