A. NET Foundation Experience

Source: Internet
Author: User

Managed code and unmanaged code

The business side of managed code is faster than unmanaged code the managed code passes the CSC compiler and the CLR translates the binary directives of the cost platform when the program first runs, and then the unmanaged code runs faster, but a program shuts down or shuts down when it's running. Binary directives to convert cost to platform

The simplified compilation principle of the. NET Platform

The program that we write will be compiled by the CSC compiler as the Microsoft intermediate language is stored in the assembly and then passed through the CLR in the JIT-in-time compiler into the local CPU binary instructions and then run

What is called an. exe file that is generated by an assembly that is compiled >net platform is an assembly

The relationship between the. NET platform and. Net. NET languages can be compiled and deployed through the. NET Platform. NET Programs

Important components of the. NET Platform

FCL Framework class Library when programmers are washing programs, Microsoft feels that there are a lot of features that programmers often use, so Microsoft has written all of these features in advance. This set of functions is called the Framework class library.

\CLR is the common language runtime if the other computer does not have the CLR installed then the program you sent to him is not running, but the CLR is not able to install it separately it is integrated in. NET Framwork

Commissioning of F10 and F11

When you highlight which line of code is the method, press F10. The whole method executes.

When you press F11, the benefits go into the inside of the method to debug a sentence.

The difference between a value type and a reference type:

A variable of value type is opened in the stack space whose true value is also the follower variable stored in the stack space

A variable of reference type is opened in the stack space whose true value is stored in the heap space and then the address of the heap space where the real value is stored is returned by this variable.

Value type long int short byte ulong uint ushort sbyte struct enum bool Char

Reference type string Array class

What's called boxing?

is a value type that is converted to a reference type.

What do you mean, unboxing?

is to have the catch of the reference type also the value type.

The difference between a small string and a large string:

Small is a keyword in the C # programming language

Large is a class in the FCL (Framework class Library)

The difference between string str=null and string str= "":

First, they all open up a space in the stack space.

Str=null is not an object, so there is no space in the heap space. Str does not point to a specific instance at this time.

Str= "" opens up a piece of space in the heap space just the value it stores is a null value and then returns the value in the heap space address to the variable str stored

The string is constant, string string s= "abc", s= "123" s= "abc"; s= "123" s= "abc"; s= "123" Is it a change?

First, S is the object that points to "123" for which you are re-assigned to "ABC" when the first step will now be in the string amount of the detention pool to check if there is an object in the content is "ABC" if there is a point to this object if not then rush to create an object content of "ABC" This Just point the direction to "ABC" but the original object still exists in the string detention pool just this variable no longer points to it

What kinds of accessibility levels are available:

1) Public access is not restricted.

2) protected is accessible in its classes and can be accessed by derived classes.

3) Internal an internal type or member is accessible only in files of the same assembly.

4) protected internal all classes in the same assembly, as well as all subclasses in the assembly, can be accessed.

5 Private members are accessible only in the class and struct in which they are declared.

The access modifiers for the class are only internal and public.

If you don't write, then the default is Interal.

field if the access modifier is not written then the default is private

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.