title: Inject Hashtable in Spring.Net
body: <p>Can you help me configure Spring.Net to inject a pre-defined hashtable in an object property?</p>
  
  <p>I've done something like this:</p>
  
  <pre><code>&lt;object name="myHashtable" type="Hashtable"&gt;
    &lt;map&gt;
      &lt;entry key="key1" value="value1" /&gt;
      &lt;entry key="key2" value="value2" /&gt;
    &lt;/map&gt;
  &lt;/object&gt;
  </code></pre>
  
  <p>but it seems that MAP node does not exists!</p>
  
  <p>SOLVED</p>
  
  <p>The exact configuration is:</p>
  
  <pre><code>&lt;object id="myHashtable" type="System.Collections.Hashtable"&gt;
      &lt;constructor-arg&gt;
          &lt;dictionary key-type="decimal?" value-type="int" merge="0"&gt;
              &lt;entry key="1" value="31" /&gt;
              &lt;entry key="2" value="32" /&gt;
              &lt;entry key="3" value="33" /&gt;
              &lt;entry key="4" value="34" /&gt;
          &lt;/dictionary&gt;
      &lt;/constructor-arg&gt;
  &lt;/object&gt;
  </code></pre>