SyntaxFix
Write A Post
Hire A Developer
Questions
I would wrap the map inside a static object, and put the map initialisation code in the constructor of this object, this way you are sure the map is created before the initialisation code is executed.