.NET Micro Framework Unsafe code

空扰寡人 提交于 2019-12-11 02:07:01

问题


Does .NET Micro Framework support unsafe code? In other words, can I use pointers in my code for .NET Micro Framework?


回答1:


From the Wikipedia page (emphasis mine):

For example, the platform does not support symmetric multiprocessing, multi-dimensional arrays, machine-dependent types, or unsafe instructions.

The technical white paper lists it in the omitted features too.




回答2:


Although officially not supported, I have personally used and tested unsafe code in NETMF 4.2 and find that it works as expected.

Another developer provides sample code for implementing a BitConverter class on NETMF doing just this:

http://forums.netduino.com/index.php?/topic/308-bitconverter/



来源:https://stackoverflow.com/questions/1307012/net-micro-framework-unsafe-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!