! Error casting enum to IComparable in CF/PPC

M

Mike

I have a .Net CF DLL that when deployed and executed on the desktop works
fine, but when executed in the PocketPC emulator or my HP PPC device throws
an execption when casting an enum to IComparable. (The enum is valid, or it
seems so as I can view the symbolic value in the debugger, or cast to an
int.) Any clues?

thanks,
mike
 
I

Ilya Tumanov [MS]

Mike,

Enums are not IComparable in CF V1. It is fixed in V2. You can cast enum to
underlying type to use IComparable.

Best regards,

Ilya

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top