Quantcast
Channel: How to properly use IReadOnlyDictionary? - Stack Overflow
Browsing all 2 articles
Browse latest View live

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 Article



How 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
Browsing all 2 articles
Browse latest View live


Latest Images