Answer by CodeCaster for How to properly use IReadOnlyDictionary?
.NET 4.5 introduced the ReadOnlyDictionary type that you could use. It has a constructor that accepts an existing dictionary. When targeting lower framework versions, use the wrapper as explained in Is...
View ArticleHow to properly use IReadOnlyDictionary?
From msdn:Represents a generic read-only collection of key/value pairs.However consider following:class Test{ public IReadOnlyDictionary<string, string> Dictionary { get; } = new...
View Article