.NET by Example

.NET by Example is a hands-on introduction to .NET using annotated example programs.
Published on Friday 6 June 2025

https://neosmart.net/blog/new-dot-net-standard-framework-logo/

In this post I will explain how I built .NET by Example, a clone of Go by Example, using the updated nocco tool I've recently been working on.

I've modified the code a little to take a list of files: .cs, .vb, .fs, in a folder, with a .bat to explain how to run the provided scripts and it builds a tabbed page of each of the files.

It also has a copy button option to make working with the code a little easier.

Hello World

The home page is then built with the list of the examples.

Home

If you have any ideas of other examples please add a new 💡Discussion item. I'll be working on adding more in the near future.

I added a build and deploy script via GitHub Actions and deployed it via GitHub Pages: https://alexhedley.github.io/dotnetbyexample.

</> Code