Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to main content

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft Edge More info about Internet Explorer and Microsoft Edge
Read in English
Read in English Edit
Twitter LinkedIn Facebook Email

C# documentation

Learn how to write any application using the C# programming language on the .NET platform.

Learn to program in C#

Get Started

  • Learn C# | Tutorials, courses, videos, and more

video

  • C# beginner video series
  • C# beginner stream
  • C# intermediate video series

Tutorial

  • Self-guided tutorials
  • In-browser tutorial

Reference

  • C# on Q&A
  • Languages on .NET tech community forums
  • C# on Stack Overflow
  • C# on Discord

C# fundamentals

Overview

  • A tour of C#
  • Inside a C# program
  • C# highlights video series

Concept

  • Type system
  • Object oriented programming
  • Functional techniques
  • Exceptions
  • Coding style

Tutorial

  • Display command-line
  • Intro to classes
  • Object oriented C#
  • Converting types
  • Pattern matching
  • Use LINQ to query data

Key concepts

Overview

  • C# language strategy
  • Programming concepts

Quickstart

  • Methods
  • Properties
  • Indexers
  • Iterators
  • Delegates
  • Events

Concept

  • Nullable reference types
  • Nullable reference migrations
  • Language Integrated Query (LINQ)
  • Versioning

What's new

What's new

  • What's new in C# 11
  • What's new in C# 10
  • What's new in C# 9.0
  • What's new in C# 8.0

Tutorial

  • Explore record types
  • Explore top level statements
  • Explore new patterns
  • Write a custom string interpolation handler

Reference

  • Breaking changes in the C# compiler
  • Version compatibility

C# language reference

Reference

  • Language reference
  • C# keywords
  • C# operators and expressions
  • Configure language version
  • C# language specification - C# 7 draft in progress

Stay in touch

Reference

  • .NET developer community
  • YouTube
  • Twitter
  • Previous Versions
  • Blog
  • Contribute
  • Privacy
  • Terms of Use
  • Trademarks
  • © Microsoft 2023
  • Previous Versions
  • Blog
  • Contribute
  • Privacy
  • Terms of Use
  • Trademarks
  • © Microsoft 2023