s2--"in depth. NET platform and C # programming

Source: Internet
Author: User

The first chapter is in depth. NET Framework

1.1 Microsoft. NET Framework Overview

. NET Framework's Benefits

* Provides an object-oriented programming environment that fully supports object-oriented programming, and the. NET framework improves software reusability, scalability, maintainability, and flexibility

* Strong support for Web applications

* Support for Web services (Web service), Web service is a very important content of. NET, it can realize communication between different applications

* Implementing SOA to support cloud computing, while. NET also provides support for cloud computing, Windows Azure is an application platform built to provide cloud computing in Microsoft Data Center.

* Support for building the. NET program's colorful cloak.

1.2. NET Framework Architecture

The . NET Framework, which runs on top of the operating system, is the most basic framework for. NET, which provides the environment for creating, deploying, and running. NET applications, mainly including

Common language Runtime (CLR) and framework class libraries (. NET Framework Library classes, FCL), and support for multiple development languages

The. NET framework has two main components: the CLR and the FCL.

The CLR is the foundation of the. NET Framework.

The FCL is a comprehensive set of object-oriented reusable types.

1.3 CLR

The CLR's full name is the common language runtime, which is the all. NET application runtime environment, which is the programming foundation for all. NET applications to use

It's like a support. NET applications to run and develop virtual machines.

The CLR consists of two components: the CLS (Common Language Specification) and the CTS (common type System)

*system: This namespace contains all the other namespaces

*system.collections.generic: Supports generic operations

*system.io: Support the operation of files, such as copying, pasting, deleting and reading and writing files.

*system.net: Support for programming of network protocols

*system.data: Provides access to classes that represent the add.net structure

*system.windows.forms: for developing Windows applications

*system.drawing: Supports GDI + basic graphics operations

2.1 Object-oriented

1. Classes and objects

Classes and objects are fundamentally different, classes define a set of conceptual models, object-oriented is the real entity, the relationship is as follows;

* from the object to the class, is to generalize the object common process

* On a class basis, the process of instantiating state and behavior into an object is called instantiation

For the properties of a class, access and settings through get and set accessors are used to secure the data in the class, and the property accessors fall into the following 3 types:

* Write-only property: Contains only the set accessor

* Read-only property: contains only get accessors

* Read and Write properties: includes both a set accessor and a get accessor

2. Encapsulation

Benefits of Encapsulation

* Security of data

* Provides clear external interface

* Class internal implementation can be arbitrarily modified without affecting other tables

Encapsulating a field as a property is a way of encapsulation, and the private method of the class is also a wrapper;

s2--"in depth. NET platform and C # programming

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.