[Solved:]Does Sololearn support dictionary initialization syntax in c#?...
[EDIT: Yes it does] ... or am I just doing it wrong (the latter being the likely answer đ). I have googled, stackoverflowed, etc to see what I am doing wrong. I am new to C#, lesson and coding challenges here in Sololearn. Here is a snippet of the code with a print to see if data is getting in the dictionary. static void Main(string[] args) { var months = new Dictionary<string, string> { {"January","1"}, {"February","2"}, {"March","3"}, {"April","4"}, {"May","5"}, {"June","6"}, {"July","7"} }; Console.WriteLine(months[" April"]); } The error I get is that there is no April key in the dictionary. I am working on the US to EU date conversion solution. I am wondering if it is a .Net version issue. I noted in my searching that some older versions like 2.0 don't support initializer syntax.