Quantcast
Channel: User Simon_Weaver - Stack Overflow
Viewing all articles
Browse latest Browse all 116

Comment by Simon_Weaver on How to create a FrozenDictionary from a static list

$
0
0
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.

Viewing all articles
Browse latest Browse all 116

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>