C# 指南C# Guide

C# 指南提供了许多有关 C# 语言的资源。The C# guide provides many resources about the C# language. 此网站面向许多不同的受众群体。This site has many different audiences. 你可能希望探索本指南的不同部分,具体视你的编程经验或 C# 语言和 .NET 使用经验而定。Depending on your experience with programming, or with the C# language and .NET, you may wish to explore different sections of this guide.

  • 对于从未接触过编程的开发者:For brand-new developers:

    • 请从快速入门部分着手。Start with the Quickstarts section. 这些快速入门可让你在浏览器中交互式浏览 C# 语言。These quickstarts let you explore the C# language interactively in your browser. 从这里你可以转到教程部分。From there, you can move on to the tutorials section. 这些教程介绍了如何从头开始创建 C# 程序。These tutorials show you how to create C# programs from scratch. 其中分步介绍了如何创建程序。The tutorials provide a step-by-step process to create programs. 同时还解释了语言概念以及如何自行生成 C# 程序。They show the language concepts, and how to build C# programs on your own. 如果希望先阅读概述内容,请尝试阅读 C# 语言介绍If you prefer reading overview information first, try the tour of the C# language. 其中介绍了 C# 语言的概念。It explains the concepts of the C# language. 阅读完这一部分后,你将会对 C# 语言有一个基本的了解,可以尝试阅读各个教程或自行生成一些程序。After reading this, you'll have a basic understanding of the language, and be ready to try the tutorials, or build something on your own.
  • 对于刚开始接触 C# 的开发者:For developers new to C#:

    • 如果以前从事过开发工作,但是刚开始接触 C#,请阅读 C# 语言介绍If you've done development before, but are new to C#, read the tour of the C# language. 其中涵盖了该语言的基本语法和结构,你可以通过“语言介绍部分”将 C# 与你用过的其他语言进行比较。It covers the basic syntax and structure for the language, and you can use the language tour to contrast C# with other languages you've used. 还可以浏览教程,尝试生成基本的 C# 程序。You can also browse the tutorials to try basic C# programs.
  • 对于 C# 经验丰富的开发者:Experienced C# developers:

    • 如果之前用过 C#,应先阅读此语言最新版本中新增的功能。If you've used C# before, you should start by reading what's in the latest version of the language. 请参阅 C# 中的新增功能,了解当前版本中的新功能。Check out What's new in C# for the new features in the current version.

C# 指南的结构How the C# guide is organized

C# 指南分为多个部分。There are several sections in the C# Guide. 可以按顺序阅读,也可以直接跳到最感兴趣的部分。You can read them in order, or jump directly to what interests you the most. 一些部分主要侧重于 C# 语言方面。Some of the sections are heavily focused on the language. 另一些部分介绍了端到端方案,展示了可以使用 C# 和 .NET Framework 创建的几种类型程序。Others provide end-to-end scenarios that demonstrate a few of the types of programs you can create using C# and the .NET Framework.

  • 入门Get Started

    • 此部分介绍了在首选平台上创建 C# 开发环境需要安装的程序。This section covers what you need to install for a C# development environment on your preferred platform. 此部分下的各个主题介绍了如何在不同的受支持环境中创建首个 C# 程序。The different topics under this section explain how to create your first C# program in different supported environments.
  • C# 快速入门C# Quickstarts:

    • C# 快速入门是为新手开发人员提供的互动教程,可让他们使用读取–求值–打印循环 (REPL) 接口在浏览器中探索和学习 C# 语言。C# Quickstarts presents interactive tutorials for brand-new developers to explore and learn the C# language in the browser using a Read-Eval-Print Loop (REPL) interface. 完成互动课程后,可以通过在自己的计算机上练习相同的课程来提高你的编码技能。After you finish the interactive lessons, you can improve your coding skills by practicing the same lessons on your machine.
  • 教程Tutorials

    • 此部分介绍了各种端到端方案,其中包括说明和代码。This section provides a variety of end-to-end scenarios, including descriptions and code. 其中演示了为什么首选特定的惯用做法、最适用于不同方案的 C# 功能,以及常见任务的参考实现。It shows why certain idioms are preferred, what C# features work best in different situations, and reference implementations for common tasks. 如果最佳学习方式是查看代码,请先阅读此部分。If you learn best by seeing code, start in this section. 还可以下载所有代码,然后在你自己的环境中进行尝试。You can also download all the code and experiment in your own environment.
  • C# 教程Tour of C#

    • 此部分概述了 C# 语言。This section provides an overview of the language. 其中介绍了 C# 程序的构成元素以及此语言的各项功能。It covers the elements that make up C# programs and the capabilities of the language. 同时演示了所有 C# 语法元素的小示例,并讨论了主要的 C# 语言主题。It shows small samples of all the syntax elements of C# and discussions of the major C# language topics.
  • C# 中的新增功能What's new in C#

    • 概述了在最新语言版本中添加的新功能以及 C# 语言的历史。Provides overviews of new features added in the latest language releases and of the history of the C# language.
  • C# 编程指南C# Programming Guide

    • 提供有关如何使用 C# 语言结构的信息和实例。Provides information and practical examples about how to use C# language constructs.
  • 演练Walkthroughs

    • 提供指向使用 C# 的编程演练和每个演练的简要概述的链接。Provides links to programming walkthroughs that use C# and a brief description of each walkthrough.
  • 语言参考Language Reference

    • 此部分收录了 C# 语言参考资料。This section contains the reference material on the C# language. 此类资料有助于你了解 C# 语法和语义。This material helps you understand the syntax and semantics of C#. 它还包含关于以下内容的参资料:类型、运算符、特性、预处理器指令、编译器开关、编译器错误和编译器警告。It also includes reference material on types, operators, attributes, preprocessor directives, compiler switches, compiler errors, and compiler warnings.
  • C# 语言规范C# Language Specification

    • 指向最新版 C# 语言规范的链接。Links to the latest versions of the C# language specification.

请参阅See also