Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
264 views
in Technique[技术] by (71.8m points)

.net - Do you know any run-time differences between Compact and Full Framework code?

There are a number of run-time differences in compatible code between these two versions of .NET.

Here is a list of differences so far:

  • Graphics.DrawRectangle - differs by 1 pixel
  • Graphics.DrawString - Loses the line wrap if used with a StringFormat with both StringAlignments set to Center.
  • Most file operations - compact framework needs a full path
  • The status of a socket after BeginAccept
  • (In WinCE 5 at least) you cannot use a socket to send data synchronously with a timeout (without is okay but you risk hangs)
  • Bitmaps (all Image-derived classes really) behave differently in how their resources are cleaned up. - ctacke
  • The default font for labels and treeviews in the CF was larger - Darwyn
  • When a label is disabled in CF it is just grayed out (the full .net framewark outlines the text with another color) - Darwyn
  • Assembly paths are returned in a different format on the desktop from System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase - Qwertie

Do we also have any more to add?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Depending on what you are looking for there is a Differences between .NET Compact Framework and .NET Framework article on MSDN.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...