C# Language And .NET Framework
This article mainly introduces the c # , C# Language and the .NET Framework  C# is an elegant and type-safe object-oriented language that enables developers to build a wide range of secure and robust applications that run on the .NET Framework. You can use C# to create traditional Windows client applications, XML Web services, distributed components, client-server applications, database applications, and much, much more. Microsoft Visual C# 2005 provides an advanced code editor, convenient user interface designers, integrated debugger, and many other tools to facilitate rapid application development based on version 2.0 of the C# language and the .NET Framework.50567
C# syntax is highly expressive, yet with less than 90 keywords, it is also simple and easy to learn. The curly-brace syntax of C# will be instantly recognizable to anyone familiar with C, C++ or Java. Developers who know any of these languages are typically able to begin working productively in C# within a very short time. C# syntax simplifies many of the complexities of C++ while providing powerful features such as nullable value types, enumerations, delegates, anonymous methods and direct memory access, which are not found in Java. C# also supports generic methods and types, which provide increased type safety and performance, and iterators, which enable implementers of collection classes to define custom iteration behaviors that are simple to use by client code.
As an object-oriented language, C# supports the concepts of encapsulation, inheritance and polymorphism. All variables and methods, including the Main method, the application's entry point, are encapsulated within class definitions. A class may inherit directly from one parent class, but it may implement any number of interfaces. Methods that override virtual methods in a parent class require the override keyword as a way to avoid accidental redefinition. In C#, a struct is like a lightweight class; it is a stack-allocated type that can implement interfaces but does not support inheritance.
In addition to these basic object-oriented principles, C# facilitates the development of software components through several innovative language constructs, including:
•    Encapsulated method signatures called delegates, which enable type-safe event notifications.
•    Properties, which serve as accessors for private member variables.
•    Attributes, which provide declarative metadata about types at run time.
•    Inline XML documentation comments.
If you need to interact with other Windows software such as COM objects or native Win32 DLLs, you can do this in C# through a process called "Interop." Interop enables C# programs to do just about anything that a native C++ application can do. C# even supports pointers and the concept of "unsafe" code for those cases in which direct memory access is absolutely critical.
The C# build process is simple compared to C and C++ and more flexible than in Java. There are no separate header files, and no requirement that methods and types be declared in a particular order. A C# source file may define any number of classes, structs, interfaces, and events.
C# programs run on the .NET Framework, an integral component of Windows that includes a virtual execution system called the common language runtime (CLR) and a unified set of class libraries. The CLR is Microsoft's commercial implementation of the common language infrastructure (CLI), an international standard that is the basis for creating execution and development environments in which languages and libraries work together seamlessly.
Source code written in C# is compiled into an intermediate language (IL) that conforms to the CLI specification. The IL code, along with resources such as bitmaps and strings, is stored on disk in an executable file called an assembly, typically with an extension of .exe or .dll. An assembly contains a manifest that provides information on the assembly's types, version, culture, and security requirements.
上一篇:Struts应用程序框架英文文献和中文翻译
下一篇:C#语言介绍英文文献和中文翻译

性别影响幼儿与同伴冲突英文文献

会计师事务所任期与审计...

ADO.NET结构与概述英文文献和中文翻译

信息系统开发与数据库开...

机器人学入门力学与控制英文文献和中文翻译

园林植物景观的园林绿化...

船舶与海洋结构物水动力...

上海居民的社会参与研究

浅论职工思想政治工作茬...

提高教育质量,构建大學生...

STC89C52单片机NRF24L01的无线病房呼叫系统设计

压疮高危人群的标准化中...

AES算法GPU协处理下分组加...

从政策角度谈黑龙江對俄...

基于Joomla平台的计算机学院网站设计与开发

浅谈高校行政管理人员的...

酵母菌发酵生产天然香料...