.NET by Example

.NET is the free, open-source, cross-platform framework for building modern apps and powerful cloud services. Please read the official documentation to learn more.

.NET by Example is a hands-on introduction to .NET using annotated example programs. Check out the first example or browse the full list below.

Unless stated otherwise, examples here assume the latest major release .NET and may use new language features. Try to upgrade to the latest version if something isn't working.