分部类是NET中出现的一个新概念。作为面向对象技术的补充和扩展,分部类获得了越来越多的关注和推崇。文章地阐述了分部类的概念,指出使用分部类创建分布式应用程序时所带来的巨大好处——控件的表示层和逻辑层自动彻底分离,重点分析了在ASENET代码隐藏模型页中使用分部类所带来的主要优点,为程序员构建软件系统提供一个重要参考。
Partial type is a new concept of .NET. As a complement and extension of object-oriented technology, it has received more and more attention and favor. This paper presents the new concept of partial type in detail, pointing out the enormous benefits brought by using partial type in creating distributed applications, i.e. the presentation layer and logic layer of controls being automatically and completely separated, and focusing on the main advantages of using partial type in building ASP.NET code behind page model, and providing a reference for programmers to building a software system.