Haven't written a blog for a long time, recently mood is relatively low, do not know why. A very popular problem is called: if you hang up tomorrow, then you regret what the most things will be. I thought for two months, the answer is don't know, does not matter. This is not good, let's put aside the question, we begin this essay.
Also mentioned in the study plan, C # Four books to learn--c# programming primer, advanced Programming, CLR via C#,pro C # 5.0 and the. NET 4.5 Framework. The current look is the first, in fact, have seen this before, but after a certain degree of programming experience to look back, the perception is completely different. Here is the first chapter of the study notes.
The 1..NET framework is the platform that Microsoft created for development applications.
2. Can be run on various operating systems: Windows, Linux, Mac OS, etc.
3. You can use it to create multiple applications: Windows apps, Web apps, Web services, and more.
4. You can use it to create multi-platform apps.
5. Can be used in multiple languages: C #, VB, C + +, JScript, and so on.
The 6..NET platform consists mainly of a code base, which is partitioned by modules and used in OOP.
7. Type is an expression of data, and the underlying type guarantees cross-language interaction.
8. Common Type System-common Type system-cts, which refers to the code base in 6.
The 9..NET platform also contains the common language runtime, Common Language runtime CLR, which manages the execution of all applications developed.
10. Use. NET writing code is to use its large-size pants to write code.
11. To execute C # code, they must be converted to the language that the target operating system understands-native code-native.
The conversion in 12.11 becomes the compiled code, which is executed by the compiler. The. NET framework consists of two phases.
13. Compile code that uses the. NET Framework library, including two stages: first, compiled by the IDE into the Common intermediate language-common itermediate language-cil code; The JIT (just-in-time) compiler compiles CIL into native code that is dedicated to both the OS and the target machine structure, and the CIL code is compiled into native code by the JIT compiler as needed.
The 14.CIL code is independent of the computer, operating system, and cpu-platform, and the JIT is related to the operating system and CPU.
15.Microsoft Intermediate Language-msil or IL equivalent is considered CIL.
16. The CIL code created is stored in an assembly that includes the executable application *.exe file and the library *.dll used by the application, including meta information and optional resources.
17. Meta-information allows assemblies to be fully self-descriptive, meaning that assemblies (System registries, etc.) can be used without additional information.
18. The global assembly Cache-global Assembly CACHE-GAC, where reusable code resides for all applications to access.
19. After the code is compiled to CIL, and then JIT-compiled to native code, the CLR manages the execution of the codes written in the. NET framework.
20. The stage of executing the code is called Runtime, runtime.
The way 21.CLR manages applications is to manage memory, handle security, cross-language debugging, and so on.
22.c# can only write code that runs in a managed environment, and C + + may write an unmanaged type of application.
The 23.CLR managed functionality allows. NET to interact with the operating system itself.
24. Garbage collection garbage collection is the most important feature of managed code that automatically frees memory that is no longer in use in the application and reclaims memory in a variable amount of time.
25. The overall process is roughly,. NET-compatible language for programming, compiled for CIL stored in assemblies, execution is JIT compiler compiled into native code, runtime stage runs native code in a managed CLR environment.
26. One application code is located in multiple source code files, compiled into an assembly, this process is called link linking, this is the first step in 25 to the second step can happen.
27.c# is a type-safe language: Conversions between types have strict rules.
A system that dynamically generates Web content under 28.asp.net-active Server pages.net-.net.
29.Active Data objects.net-ado.net database access module.
30.c# 's Linq-language Integrated Query.
In general, the above record is what I understand, the type of safety in the place may be looking at the book. Then. NET includes the CTS and CLR, which are created. NET application consists of four steps, see 25th, rest.
1. For. NET's initial understanding and introduction