1.NET .Dot Net
.Net-based languages: C #, VB.Net, F #, IronPython
2.Visual Studio is a development tool, and the .NET Framework is some class libraries provided; all languages based on .NET development can call classes in the .NET Framework
3.
a..NET program level: operating system --- CLR --- .Net Framework --- applications, the .NET Framework is compatible with different operating systems, which is the platform independence of the .NET Framework, now Microsoft supports .net development under Unix in order to improve competitiveness with Linux;
b..net is platform independent: CLR, .NET Framework are isolated, windows, linux (Mono), smartphone, Web,
RIA, learning .NET can be developed, knowledge transfer, more secure, more worry-free, code hosting, rare pointers, garbage collection
c. Language-independent, VB Net, C #, call the same class, the same method, the class C # written by VB Net can also be called, which blurs the language differences.
4.Memory management, memory does not need to manage garbage collection, pointers are rarely used, and the language is irrelevant. With different languages, the same project can be developed and compatible with the help of .net.
5..net version: .net1.1, .net2.0, NET 3.X, .NET4.x are backward compatible;
Visual Studio2003, 2005, 2008, 2010 === There are Express Edition, Standard Edition, Professional Edition, Team Edition;
6.First C # program:
a. Single line comment: //
b. Multi-line comments: / * ... * /, note that there are no spaces between * and /. The only three console instructions you need to learn: I want the console to print: hello ... using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 {class Program {static void Main (string [] args) {Console.WriteLine ("hello ..."); Console.ReadKey (); // Click the button to continue carried out} } }
------------------------------------------
1. Solution Explorer on the right: Program.cs is the abbreviation of c shape;
2.The c # source file ends with cs. The entrance to the c # program is the Main function. Just write the code in the Main. For the time being, don't care what the other parts mean
3 common mistakes: no semicolon at the end, wrong case
4. Display the line number of the code; Select the menu bar-Tools-Options-left text editor-C #-check the upper line number;
5.ac # syntax: execute from top to next b. Case sensitivity c. Function parameters are surrounded by () d. Semi-colon (;) between two sentences of code (prone to error: full-width problem) e. Comments : Single-line comments, and multi-line comments;
-------------------------------------------------- -
1. Variable: Data type: string, int, char, decimal, byte, double, long, float; string escape: \ backslash, newline character: "a \ nb", at this time \ n refers to a newline The character "\\ ab" can be output: \ ab; ac: \\ temp \\ files \\ imag.jpg, here \\ is used for escaping; string s = @ "\\\" // Note that @ means a character \ 不当 为 escaping characters in strings; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication2 {class Program {static void Main (string [] args) {/ * int i = 10; Console.WriteLine (i); string name = Console.ReadLine (); Console.WriteLine (name + "hello ..."); * / string s = "\" a \ nb \ ""; string s = @ "\\\" // Note @ indicates that the \ in the string is not considered an escape character; @ is only meaningful for the \ escape character Console.WriteLine (s); Console.ReadKey ();}}}