WARNING: If you've ever used the traditional
ToDictionary()
you've probably at some point come across a duplicate key exception. Important to note that ToFrozenDictionary
does not raise an exception in case of duplicateds: "If the same key appears multiple times in the input, the last one in the sequence takes precedence. This differs from ToDictionary, where duplicate keys result in an exception."
Bear this in mine when creating a FrozenDictionary.