Inject an empty string via Structuremap xml config

By : osgx
Source: Stackoverflow.com
Question!

When I use the following in a structuremap xml config file, it is like I didn't specify the captureFileName parameter at all.

How can I inject an empty string?

By : osgx


Answers

You must specify the value as captureFileName="STRING.EMPTY" in the XML. Its an old hack in StructureMap to get around the fact that XML treats an empty attribute as non-existent.



This video can help you solving your question :)
By: admin