Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我在结构映射 xml 配置文件中使用以下内容时,就像我根本没有指定 captureFileName 参数一样。
如何注入空字符串?
您必须在 XML 中将值指定为 captureFileName="STRING.EMPTY"。它是 StructureMap 中的一个旧技巧,用于解决 XML 将空属性视为不存在的事实。