Danh mục

Tài liệu lập trình C# - Ngôn ngữ kỹ thuật

Số trang: 547      Loại file: doc      Dung lượng: 2.39 MB      Lượt xem: 9      Lượt tải: 0    
Xem trước 10 trang đầu tiên của tài liệu này:

Thông tin tài liệu:

C # (phát âm là "Xem Sharp") là một đơn giản, hiện đại, ngôn ngữ lập trình hướng đối tượng, và kiểu an toàn. C #có nguồn gốc từ gia đình C của ngôn ngữ và sẽ được ngay lập tức quen thuộc với C, C + +, và các lập trình Java.C # được chuẩn hóa ECMA quốc tế như là tiêu chuẩn ECMA-334 và theo tiêu chuẩn ISO / IEC là ISO / IEC 23270tiêu chuẩn. Microsoft C # trình biên dịch cho. NET Framework là một thực hiện phù hợp của cả haitiêu chuẩn....
Nội dung trích xuất từ tài liệu:
Tài liệu lập trình C# - Ngôn ngữ kỹ thuật # CLanguage Specification Version 4.0 Copyright © Microsoft Corporation 1999-2010. All Rights Reserved.Please send corrections, comments, and other feedback to csharp@microsoft.comNotice© 1999-2010 Microsoft Corporation. All rights reserved.Microsoft, Windows, Visual Basic, Visual C#, and Visual C++ are either registered trademarks or trademarks of MicrosoftCorporation in the U.S.A. and/or other countries/regions.Other product and company names mentioned herein may be the trademarks of their respective owners. Copyright © Microsoft Corporation 1999-2010. All Rights Reserved. Table of ContentsTable of ContentsIntroduction..........................................................................................................................................................1 1.1 Hello world...................................................................................................................................................1 1.2 Program structure.........................................................................................................................................2 1.3 Types and variables......................................................................................................................................4 1.4 Expressions..................................................................................................................................................7 1.5 Statements....................................................................................................................................................9 1.6 Classes and objects.....................................................................................................................................14 1.6.1 Members..............................................................................................................................................15 1.6.2 Accessibility........................................................................................................................................15 1.6.3 Type parameters...................................................................................................................................16 1.6.4 Base classes.........................................................................................................................................16 1.6.5 Fields...................................................................................................................................................17 1.6.6 Methods...............................................................................................................................................17 1.6.6.1 Parameters.....................................................................................................................................18 1.6.6.2 Method body and local variables...................................................................................................19 1.6.6.3 Static and instance methods...........................................................................................................20 1.6.6.4 Virtual, override, and abstract methods.........................................................................................21 1.6.6.5 Method overloading......................................................................................................................23 1.6.7 Other function members.......................................................................................................................24 1.6.7.1 Constructors..................................................................................................................................26 1.6.7.2 Properties......................................................................................................................................27 1.6.7.3 Indexers.........................................................................................................................................27 1.6.7.4 Events............................................................................................................................................28 1.6.7.5 Operators.......................................................................................................................................28 1.6.7.6 Destructors....................................................................................................................................29 1.7 Structs................................................................................................................................... ...

Tài liệu được xem nhiều: