As mentioned here in the documentation , you can enter a string array as a comma-separated string (not sure if the syntax is designed to speed up the actual commas in strings, if necessary). In other words, your config will look something like this:
<object id="MyObject" type="Blah.SomeClass, Blah" > <property name="StringArrayProperty" value="abc,def,ghi" /> </object>
Manually building string[] with the following syntax also works if you need something more complex (for example, if you are viewing individual values ββfrom some other link, rather than hard-coding them):
<object id="TestStrArr" type="string[]" > <constructor-arg value="3" /> <property name="[0]" value="qwe" /> <property name="[1]" value="asd" /> <property name="[2]" value="zxc" /> </object> <object id="MyObject" type="Blah.SomeClass, Blah" > <property name="StringArrayProperty" ref="TestStrArr" /> </object>
source share