简体   繁体   中英

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 = 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.

This makes sense because I'm not specifying the entity class, but, how I do that??

I'm using FluorineFx for the remoting.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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