2011-10-27 16 views
0

是否有可能使用RemoteObject和source从Flex创建C#通用类的实例?如何从ActionScript RemoteObject实例C#Generic <T>类?

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

我得到这个错误信息:因为 ContainsGenericParameters是真的

无法创建Service.GenericClass``1 [T]的实例。

这是有道理的,因为我没有指定实体类,但是,我该怎么做?

我正在使用FluorineFx进行远程处理。

+0

@Dan:注意'**'粗体命令在代码格式中不起作用。它有时很烦人... – sarnold

+0

@sarnold我应该删除那些那里(不知道为什么我没有..) – Dan

回答

0

我认为你可以做的最好的事情就是获得FluorineFX的源代码,设置一些断点并试图找出它。