Introduction to the C# language C # is an object-oriented and type of programming language, from C and C + +. C # (pronounced - C sharp) firmly planted in the C and C + + language genealogy, and will be immediately familiar with C and C + + programmers in C # is part of the Microsoft Visual Studio 7.0. In addition to the c #, Visual Studio support Visual Basic, Visual c + +, scripting languages and JScript VBScript. All these languages provide the next generation Windows services (NWGS) platform, including common execution engine and rich class library. . Network software development kit defines a "common language subset" (CLS), a kind of language, to ensure seamless interoperability between CLS - compliant language and libraries. For c # developer, this means that even if the c # is a new language, it has full access to the same rich class library, by experienced tools, such as the use of Visual Basic and Visual c + +. C # does not contain a class library. The rest of this chapter describes the basic characteristics of the language.50566
manual memory management requires developers to manage the allocation and de-allocation of blocks of memory. Manual memory management is both time consuming and difficult. C# provides automatic memory management so that developers are freed from this burdensome task. In the vast majority of cases, this automatic memory management increases code quality and enhances developer productivity without negatively impacting either expressiveness or performance.
The use of a test program stack class, create and initialize a stack and 10 elements, and then assign a null value. Once the variable assignment null, stack and become 10 nodes instances of garbage collection. Immediately clean up the garbage collector is allowed, but not required. Developers often content automatic memory management, but sometimes need to fine-grained control or additional performance, unsafe to be able to write c # code. This code can be directly with pointer type, and fix objects temporarily stop the garbage collector will they. This kind of unsafe for code function is actually safe for function from the perspective of developers and users. Unsafe code in the code must be clearly marked and modifier is unsafe, so developers can't use unsafe features not careful, and the c # compiler execution engine work together, to ensure the safety of unsafe code doesn't pretend to be the code.
C # supports two main types: value types and reference types. Value types, including simple types (like int, char, and float), enumerated types and structure type.
.原文的翻译C#语言介绍
c#是一个面向对象和类型的编程语言,来自C和c++。c#(发音- C锋利为)牢牢插在C和c++语言的族谱中,并将立即熟悉C和c++程序员c#是微软Visual Studio 7.0的一部分。除了c#,Visual Studio支持Visual Basic,Visual c++,脚本语言VBScript和JScript。所有这些语言提供下一代Windows服务(NWGS)平台,其中包括常见的执行引擎和丰富的类库。的。网络软件开发工具包定义了一个“共同的语言子集”(CLS),一种通用语,确保无缝CLS-compliant语言之间的互操作性和类库。论文网对于c#开发人员,这意着即使c#是一种新语言,它有完全访问相同的丰富的类库,由经验丰富的工具,如使用Visual Basic和Visual c++。c#本身并不包含一个类库。剩下的这一章描述了语言的基本特征。 C#语言介绍英文文献和中文翻译:http://www.751com.cn/fanyi/lunwen_38898.html