Can I do something like this:
<object id="mydb" type="string">
<value>"blah"</value> <-- note that <value> tag does not really exist
</object>
So that I could use it later like so:
<object id="Someobject" type="Sometype">
<property name="ConnectionString" ref="mydb"/>
</object>
EDIT: this was SpringFramework.NET solution I was looking for. Looks like PropertyPlaceholderConfigurer exists there too. Thanks everybody.