How to config a Dictionary property

Aug 4, 2009 at 3:53 AM

Is there a way to setup a Dictionary property directly in configuration so that I can change the value without any compile?

I found the unity documentation focusing on Array type, so it should be a way to do with Dictionary. I think the configuration should look like below, but nothing could be found related.

              <property name="dic" propertyType="System.Collections.Generic.Dictionary`2[[System.String, mscorlib], [System.String, mscorlib]],mscorlib">
                <value key="first" value="first"></value>
                <value key="second" value="second"></value>
              </property>
Any help is much appreciated~!

Aug 4, 2009 at 4:11 AM

See Chris Tavares' reply on the same question so you could provide your inputs as well  : http://unity.codeplex.com/Thread/View.aspx?ThreadId=63225

 

Sarah Urmeneta
Global Technology and Solutions
Avanade, Inc.
entlib.support@avanade.com