Initialization of Dictionary is not a new thing. You can easily initialize a Dictionary Object using a Collection Initializer, which is there since C# 3.0. Collection initializer adds one of the parameter as Key and another as Value corresponding to the assigned Key. C# 6.0 adds a new ability to use the Key / indexer [...]
↧