开发者

Is .NET Compact a perfect subset of .NET?

开发者 https://www.devze.com 2022-12-20 03:08 出处:网络
Is .NET Compact a perfect subset of .NET? Can I write a Windows Forms application and run it on .NET Compact, assuming that I took into account 开发者_StackOverflow中文版screen size and other limitat

Is .NET Compact a perfect subset of .NET?

Can I write a Windows Forms application and run it on .NET Compact, assuming that I took into account 开发者_StackOverflow中文版screen size and other limitations and avoid classes and methods not supported by .NET Compact or is .NET Compact a different and incompatible GUI framework?


Yes, for the most part, (especially in regards to Windows Forms) .NET CF is a subset of the standard .NET Framework.

... other limitations and avoid classes and methods not supported by .NET Compact ...

This is the main tricky portion. .NET CF doesn't support quite a bit of things in the framework.

There are a couple of obscure classes in the framework only supported on CF, such as the IrDA classes in networking, but otherwise, everything in .NET CF is supported in the standard distribution.

For details, see "Differences with the .NET Framework" on MSDN.


No, but you can do the other way around; write a compact framework app and run it on the desktop. There may be some limitations that I am not aware of, but for simpler applications it works.


the Compact Framework is not exactly a subset of the .Net framework, but close enough. Watch out for DataGrid, they are not the same as the DataGridView in 2.0 and 3.5, but much more like the DataGrid in 1.1 (which I hated).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号