C# 程式設計手冊C# programming guide

本節提供 c # 的主要 c # 語言功能和功能的詳細資訊,可透過 .NET 取得。This section provides detailed information on key C# language features and features accessible to C# through .NET.

本節內容中大部分會假設您已經了解一些 C# 和一般程式設計概念。Most of this section assumes that you already know something about C# and general programming concepts. 如果您是程式設計或 c # 的新手,您可能會想要造訪c # 教學課程或.Net 瀏覽器中教學課程的簡介,其中不需要任何預先設計的知識。If you are a complete beginner with programming or with C#, you might want to visit the Introduction to C# Tutorials or .NET In-Browser Tutorial, where no prior programming knowledge is required.

如需特定關鍵字、運算子和預處理器指示詞的詳細資訊,請參閱c # 參考For information about specific keywords, operators, and preprocessor directives, see C# Reference. 如需 C# 語言規格的相關資訊,請參閱 C# 語言規格For information about the C# Language Specification, see C# Language Specification.

程式區段Program sections

在 c # 程式中Inside a C# Program

Main ()和命令列引數Main() and Command-Line Arguments

語言章節Language Sections

語句、運算式和運算子Statements, Expressions, and Operators

類型Types

類別和結構Classes and Structs

介面Interfaces

委派Delegates

陣列Arrays

字串Strings

屬性Properties

索引子Indexers

事件Events

泛型Generics

迭代器Iterators

LINQ 查詢運算式LINQ Query Expressions

Lambda 運算式Lambda Expressions

命名空間Namespaces

Unsafe 程式碼和指標Unsafe Code and Pointers

XML 檔批註XML Documentation Comments

平台章節Platform Sections

應用程式定義域Application Domains

.NET 中的組件Assemblies in .NET

屬性Attributes

集合Collections

例外狀況和例外狀況處理Exceptions and Exception Handling

檔案系統和登錄 (C# 程式設計手冊)File System and the Registry (C# Programming Guide)

互通性Interoperability

反射Reflection

另請參閱See also