{"id":9515,"date":"2025-05-22T13:02:43","date_gmt":"2025-05-22T12:02:43","guid":{"rendered":"https:\/\/solidt.eu\/site\/?p=9515"},"modified":"2025-05-22T13:02:44","modified_gmt":"2025-05-22T12:02:44","slug":"c-frozendictionary","status":"publish","type":"post","link":"https:\/\/solidt.eu\/site\/c-frozendictionary\/","title":{"rendered":"C# FrozenDictionary"},"content":{"rendered":"\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-start-debugging wp-block-embed-start-debugging\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"LWLyrdxlaC\"><a href=\"https:\/\/startdebugging.net\/2024\/04\/net-8-performance-dictionary-vs-frozendictionary\/\">.NET 8 performance: Dictionary vs. FrozenDictionary<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;.NET 8 performance: Dictionary vs. FrozenDictionary&#8221; &#8212; Start Debugging\" src=\"https:\/\/startdebugging.net\/2024\/04\/net-8-performance-dictionary-vs-frozendictionary\/embed\/#?secret=BNYotJAxvN#?secret=LWLyrdxlaC\" data-secret=\"LWLyrdxlaC\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p><a href=\"https:\/\/code-corner.dev\/2023\/11\/08\/NET-8-%E2%80%94-FrozenDictionary-performance\">https:\/\/code-corner.dev\/2023\/11\/08\/NET-8-%E2%80%94-FrozenDictionary-performance<\/a><\/p>\n\n\n\n<div style=\"height: 250px; position:relative; margin-bottom: 50px;\" class=\"wp-block-simple-code-block-ace\"><pre class=\"wp-block-simple-code-block-ace\" style=\"position:absolute;top:0;right:0;bottom:0;left:0\" data-mode=\"csharp\" data-theme=\"monokai\" data-fontsize=\"14\" data-lines=\"Infinity\" data-showlines=\"true\" data-copy=\"false\">return LinqHelper.GroupUniqueLabelsById(allItems, x => x.InspectionId, x => x.Grower).ToFrozenDictionary();\n\n\/\/ or HashSet\nvar allFields = GetDataFields();\nvar fieldNames = allFields.Select(x => x.FieldName).ToFrozenSet();<\/pre><\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/code-corner.dev\/2023\/11\/08\/NET-8-%E2%80%94-FrozenDictionary-performance<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-9515","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts\/9515","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/comments?post=9515"}],"version-history":[{"count":1,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts\/9515\/revisions"}],"predecessor-version":[{"id":9516,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/posts\/9515\/revisions\/9516"}],"wp:attachment":[{"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/media?parent=9515"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/categories?post=9515"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/solidt.eu\/site\/wp-json\/wp\/v2\/tags?post=9515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}