如何在unity config xml文件中的unity注册中注册null值?

时间:2016-05-10 04:41:07

标签: c# unity3d inversion-of-control config app-config

我有一种情况,当我向Unity容器请求特定类型时,它应该返回“null”值。

这样的东西
<register type="MyNamespace.MyType" mapTo="null" />

我怎样才能实现它?

0 个答案:

没有答案