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>
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  :


Sarah Urmeneta
Global Technology and Solutions
Avanade, Inc.