Reflection: does it work with CF?

  • Thread starter Thread starter Zanna
  • Start date Start date
Z

Zanna

Hi wonder if the CF supports reflection.
When I ask a simple Type.GetType("System.String").GetMethods I got
uncomprensible errors.
At runtime I get a NotSupportedException, on the debug window I get
"Incorrect Parameter"...
Also I cannot call Type.InvokeMember because it give the same errors.

Some one experienced the same?
Have I to renunce to Reflection?

I'm testing it on the emulator 2002 and CF SP2.

Thanks
 
When I ask a simple Type.GetType("System.String").GetMethods I got
uncomprensible errors.

I'm testing it on the emulator 2002 and CF SP2.

Damn it!

With emulator 2003 it seems to work fine...

Now my question is: is there a bug on the emulator or Reflection won't work
on PocketPc 2002?

Thanks again
 
Post the code

Zanna said:
Damn it!

With emulator 2003 it seems to work fine...

Now my question is: is there a bug on the emulator or Reflection won't work
on PocketPc 2002?

Thanks again
 
Alex Feinman said:
Post the code

Well... I'm driving crazy :)

In compiled this works:

Dim m as MethodInfo()
m = Type.GetType("System.String").GetMethods()

but if I put a breakpoint on this line and I run it, and when the debugger
stops on the line, I try to evaluate the same line:

m = Type.GetType("System.String").GetMethods()

or

Type.GetType("System.String").GetMethods()

I got "Invalid Parameter"... And this also if the type is already resolved
:(

All this works fine on PPc2003 emulator

Hard debug days on my way :(
 
Back
Top