在Unity App.Config文件中包含通用类 [英] Including a generic class in Unity App.Config file
本文介绍了在Unity App.Config文件中包含通用类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个类型为ISimpleCache<IBrokeredDataObject>
的类,要添加为App.Config文件中的类型别名(然后是类型)
I have a class of type ISimpleCache<IBrokeredDataObject>
that I want to add as a type alias (then a type) in the App.Config file
线
<typeAlias alias="ISimpleCacheOfIBrokeredDataObject" type="MyApplication.ISimpleCache<IBrokeredDataObject>, MyApplication" />
由于<>显然是错误的,但是我不认为要转义它们;
is obviously wrong due to the <>, however I'm not convinced escaping them;
<typeAlias alias="ISimpleCacheOfIBrokeredDataObject" type="MyApplication.ISimpleCache<IBrokeredDataObject>, MyApplication" />
也是正确的.
我目前正在撕裂我的代码以使用Unity,因此离可编译的代码库太远了,无法快速进行测试,并且希望在这里得到一些确认.
I am currently ripping my code apart to use Unity, so am too far from a compilable code base to test this quickly, and was hoping to get some confirmation here.
推荐答案
查看全文