C# 编程指南C# programming guide

此部分详细介绍了 C# 语言主要功能,以及通过 .NET Framework 可以在 C# 中使用的功能。This section provides detailed information on key C# language features and features accessible to C# through the .NET Framework.

阅读此部分的大部分内容的前提是,你已对 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

枚举类型Enumeration Types

委托Delegates

数组Arrays

字符串Strings

属性Properties

索引器Indexers

事件Events

泛型Generics

迭代器Iterators

LINQ 查询表达式LINQ Query Expressions

Lambda 表达式Lambda Expressions

命名空间Namespaces

不安全代码和指针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