Compact Framework
设计目标
l 保持语义的连贯性
l 减少依赖
Ø Pocket 操作系统的 API
Ø COM 对象
l 支持网络和 Web service
l 对有限资源的平台进行了优化
Ø 2 MB 内存
Ø 复杂的内存管理

| The Compact Framework is a subset of the standard .NET Framework optimized for use on smart devices.
| Wherever possible, the API interfaces are semantically consistent with their desktop counterparts. This means that, for the most part, the Compact Framework namespaces, classes, and members bear the same names and signatures. Later, you will see what functionality has been omitted from the Compact Framework.
| You can create complete applications without relying on the operating system or legacy COM components. However, if you will see later in the session how to talk to native APIs if you choose to.
| The Compact Framework provides full support for the most common network protocols, including full SOAP Web Service support. With these classes, your applications can effectively integrate with server-side resources.
| Finally, the Compact Framework has been heavily designed to operate in the low memory environments of most smart devices. When loaded, it can operate in as little as 2 MB of memory. The memory manager has also been redesigned to aggressively release resources when low memory conditions arise. If an out-of-memory condition occurs, the Framework will close your application, although the Framework itself will not be affected.