KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is there anything built into the core C# libraries that can give me an immutable Dictionary? Something along the lines of Java's : Collections.unmodifiableMap(myMap); And just to clarify, I am not looking to stop the keys / values themselves from being changed, just the structure of the Dictionary. I want something that fails fast and loud if any of IDictionary's mutator methods are called ( Add, Remove, Clear ).
Tags (comma-separated)
Save Edits
Cancel