問題タブ [immutable-collections]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c# - ReadOnlyDictionary と ImmutableDictionary の違いは何ですか?
C# では、これら 2 つのコンテナーの主な違い (機能またはユース ケースの観点から) は何ですか? Google でこれらを比較する情報はないようです。
System.Collections.ObjectModel.ReadOnlyDictionary System.Collections.Immutable.ImmutableDictionary
ImmutableDictionary
anはスレッドセーフであることを理解しています。についても同じReadOnlyDictionary
ですか?
これはIReadOnlyDictionary を適切に使用するには?の複製ではありません。. その質問は、IReadOnlyDictionary の使用方法に関するものです。この質問は、2つの違いについてです(2015年に誰かがそのスレッドにコメントしたように、別の質問になります-つまり、これです)