English 中文(简体)
“行动”的C# Generic <T”类
原标题:How instance a C# Generic<T> class from ActionScript RemoteObject?

是否可能从具有遥感和源的灵活中选C# Generic类别?

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

I m 获取这一错误信息:

Cannot create an instance of Service.GenericClass``1[T] because ContainsGenericParameters is true.

这样做是有意义的,因为我没有具体说明实体类别,但我如何这样做?

I m 利用Fx进行改造。

问题回答

我认为,你能够做的最好事情是获得《流星源法》,确定几个断点,并试图将其照相。





相关问题
Generic constraint exclusion

Sorry for asking silly question Is it possible to enforce constraint on generic in such a way that the given T can be derived from any reference Type except some A,B,C (where A,B,C are reference ...

Can a Type Derive from Itself?

When enforcing a Generic constraint class GenericTest { public void Sample<T>(T someValue) where T:Racer,new() { Console.WriteLine(someValue.Car); } } The Type T should be ...

C# Deriving Generic Methods

When i need to pass a Generic Type I can use the Syntax (Example : Ofcourse it is not a Generic Method) public void Sample(T someValue) { ...... } What is the benefit of declaring Sample<T>...

What is the benefit to using List<T> over IEnumerable<T>?

or the other way around? I use generic lists all the time. But I hear occasionally about IEnumerables, too, and I honestly have no clue (today) what they are for and why I should use them. So, at ...

热门标签