【发布时间】:2010-09-16 14:27:45
【问题描述】:
这是我不知道正确的 Xml 语法的一个简单问题。在温莎城堡中,我可以复制这行代码:
IoC.Container.AddComponent<IInputRequestedDialog<string>, SealsInputDialog>("seals");
有了这个 XML:
<component id="seals"
service="MyApp.InputRequestedDialog`1[[System.String]], MyApp"
type="MyApp.SealsInputDialog, MyApp" />
但是如果具体泛型是字符串数组而不是字符串呢?如何对以下内容进行 xml 化?
IoC.Container.AddComponent<IInputRequestedDialog<string[]>, SealsInputDialog>("seals");
【问题讨论】: