跳到主要内容
学院
初级 代码街区

C#

用 .NET 开发应用、游戏和服务。

C# is a modern, type-safe language from Microsoft, and .NET is the free, open-source platform that runs it on Windows, macOS and Linux. With one language you can build web services with ASP.NET Core, games with Unity, and desktop and mobile apps. This course starts from zero with .NET 10 and C# 14: your first program in a single file, variables and types, decisions and loops, methods, then classes and records, lists and LINQ, null safety, async code and a small web API.

Every program in the course was run for real, and every output you see is exactly what it prints.

课时
14
时长
2 小时
级别
初级

本课程的内容目前为英文。

  • 铜牌 可挑战
  • 银牌 可挑战
  • 金牌 未解锁

准备好证明自己了吗?

三场考试正等着你:铜牌、银牌和金牌。

前往考试

学完后你将能够

  • Write and run C# programs, from a single file to a full .NET project
  • Use types, var, string interpolation, loops and switch expressions with confidence
  • Model data with classes and records, and handle null safely
  • Filter, sort and group collections with LINQ
  • Write async code and build a small JSON web API with ASP.NET Core

学习旅程

  1. 1
    第 1 单元

    C# basics

    What .NET is, your first program, values and types, decisions, loops and methods.

    0 / 5
  2. 2
    第 2 单元

    Objects, LINQ and the web

    Classes and records, collections and LINQ, null safety, async code and a minimal web API.

    0 / 5
  3. 3
    第 3 单元

    Next steps

    Where to go after this course: bigger programs, tests, databases and games.

    0 / 4

快速导航