C# by Example

C# is a general purpose and high-level programming language by Microsoft. Built on the .NET runtime, it is a portable, robust, and flexible language with a strong library of tools. It is one of the most popular languages in the world.

C# by Example is a hands-on introduction to C# using annotated examples. Check out the first example or browse the full list below. This is a C# version of Go By Example (rewritten in C#, of course).

This site is actively a work in progress. Contribute on GitHub with an issue or a pull request.