1
这是一个简单的问题,我不知道正确的Xml语法。在温莎城堡我可以复制这行代码:什么是标准的CLR 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");
Upvoting回复引用我感到奇怪:) – 2009-12-17 07:58:36