How to get a ref Type in cf?

  • Thread starter Thread starter Alfred Hutter
  • Start date Start date
A

Alfred Hutter

Hi,

To get a byref type, i'm using Type.GetType() and append an "&" at the end of the type name.
If I try to use this in Compact Framework i always get a System.TypeLoadException.

For example: Type type = Type.GetType( "System.Int32&", true );

If anyone has any suggestions, please let me know.

Thanks, Alfred
 
Looks like a bug to me. There are several known issues with GetType
implementation in CF. This might be one of them
 
Alfred,

Thanks a lot for reporting this problem. I was able to reproduce it and it
will be fixed in upcoming version of the Compact Framework.

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
 
Back
Top