Depth. NET Framework (most of today's hair is theoretical knowledge)

Source: Internet
Author: User

Hello everyone, I small white a piece, the content of today's newly-learned and share with you, good, nonsense not much to say, we cut into the theme!

Since we're going to do it. NET Framework, you need to know Microsoft. NET, so let me introduce you to the. Net

In 2000, Microsoft offered its revolutionary software and services platform to the world, which heralded a greater ability for consumers, businesses and software developers

And the advent of a new era of more business opportunities. Microsoft. NET platform leverages the features of Internet-based computing and communications surges, through advanced software technology and numerous smart devices,

To provide a simpler, more personalized, more efficient internet services. What's more, users will be free to "surf", access, view, and use freely, completely free from human-hardware constraints.

Your data, not the space in your PC--accessible through any desktop system, laptop, mobile phone or PDA. NET's strategic goal is to be anywhere

(where), any time (when), using any tool (what) can pass. NET of services to obtain any information on the network, enjoy the network to bring people the convenience and happiness.

Understand. NET Framework, then what is his superiority? Let's introduce each of them.

1. Provides a programming environment for a face object, fully supports object-oriented programming. NET Framework improves software reusability, extensibility, maintainability, and flexibility.

2. Strong support for Web applications. Today is the era of the Internet, a large number of Web applications play this important role. For example, the world's larger PC vendor, Dell Inc. (

DELL). His sales method is online ordering method, his official website is by. NET-developed. In the face of such a large user base, it is still able to maintain efficient work

Do, and. NET platform of the power and stability is inseparable. Also, smash hit's social networking site, MySpace, also uses. NET to develop

3. Support for Web service (Web services). Web Service is a very important part of. NET, and he can communicate with each other in different applications. We often make

With the Ctrip ticketing system, it supports Web service features

4. Implement SOA to support cloud computing. SOA is an important architectural paradigm that supports the modular implementation of a mid-tier solution, and. NET provides the support for SOA implementations

Hold. At the same time,. NET also provides support for cloud computing, Windows Azure is an application platform built to provide cloud computing in Microsoft Data centers.

5. Support Build. NET program's colorful cloak.

After understanding the power and charm of the. NET Framework, let's look at the composition and working principles of the. NET Framework

First of all. NET Framework of the two components:

The difference is. clr** (Common Language Runtime) Framework class Library of the common language runtime and FCL (Framework class Library) where the CLR also contains the CTS

(Common type System) and CLS (Common Language Specification)

. NET Framework core structure diagram and. NET compilation process diagram

. NET Framework core structure diagram. NET compilation process diagram

Object-oriented:

1. Classes and objects

Classes and objects are fundamentally different, classes define a set of conceptual models, and objects are real entities, and the relationships between them are as follows:

The generalization of objects is the process of generalizing the common object.

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

For properties with classes, we access and set them through get and set accessors to secure the data in the class. The property accessors are divided into the following three types:

Write-only property: Contains only the set accessor

Read-only property: contains only get accessors

Read-write properties: Both get and set accessors are included.

How to set a property: First define a private field and then encapsulate the field as an attribute, such as instance 1

You can use shortcut keys Ctrl+r+e

private string name;

public string Name
{
get {return name;}
set {name = value;}
}

There is also an automatic attribute, the shortcut key of the automatic attribute is the Prop keyword +tab key +tab key, the encapsulation attribute is more flexible than the automatic attribute, because the encapsulation property can be used

The logical judgment If-else the relative judgment, and the automatic attribute does not have this function. Code for automatic attributes:

public string MyProperty {get; set;}

Now that we've covered the package, let's talk about what encapsulation is, and what I mean by that is: the package, which can be seen as a box, can be stored in a box.

Fields, properties, methods and strings, etc., encapsulation has several advantages, that is to ensure the security of the data, provide a clear external interface, class internal implementation can be arbitrarily modified, without affecting other classes.

Next we talk about class diagram, in the actual software development, the size of the software is generally very large, such as open source. NET development tool SharpDevelop has hundreds of thousands of lines of source code.

With such a huge amount of code, it is difficult to read one line at a time, so we often use class diagrams to solve this problem. Class diagrams can be displayed with properties, behaviors, and methods.

If you want to open a class diagram in Visual Studio 2012, we can do this:

This allows you to view the class diagram ....

Well, today's theoretical knowledge of the first to speak so much, after a daily update, the knowledge I learned every day to summarize, and then show to everyone.

Depth. NET Framework (most of today's hair is theoretical knowledge)

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.