Is .NET Compact a perfect subset of .NET?
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).
精彩评论