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