Initialize static Dictionary while creating in C++/CLI
问题 Today I saw C# code that creates static dictionary and initializes it: public static readonly Dictionary<string, string> dict = new Dictionary<string, string>() { {"br","value1"}, {"cn","value2"}, {"de","value3"}, }; but when I decided to write same code for C++/CLI, an error occurred. Here is my attempt: static System::Collections::Generic::Dictionary<System::String^, System::String^>^ dict = gcnew System::Collections::Generic::Dictionary<System::String^, System::String^>( ) { {"br","value1"