简体   繁体   English

如何实例化C#泛型 <T> 从ActionScript RemoteObject类?

[英]How instance a C# Generic<T> class from ActionScript RemoteObject?

Is it possible to create an instance of a C# Generic class from Flex with RemoteObject and source? 是否可以使用RemoteObject和源代码从Flex创建C#泛型类的实例?

remoteObject = new RemoteObject("fluorine");
remoteObject.source="Service.GenericClass`1"; //how specific the entity class??
remoteObject.getMethod(arg1, arg2);

I'm getting this error messages: 我收到以下错误消息:

Cannot create an instance of Service.GenericClass``1[T] because ContainsGenericParameters is true. 无法创建Service.GenericClass''1 [T]的实例,因为ContainsGenericParameters为true。

This makes sense because I'm not specifying the entity class, but, how I do that?? 这是有道理的,因为我没有指定实体类,但是我该怎么做?

I'm using FluorineFx for the remoting. 我正在使用FluorineFx进行远程处理。

我认为您能做的最好的事情就是获取FluorineFX源代码,设置一些断点,然后设法弄清楚它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM