Skip to main content
CSharpUniversity ASP.NET and C# lessons

The search runs entirely in your browser over the published lesson list.

Reading the documentation with C# examples

The official documentation is written once and translated into several languages. If your browser is showing Visual Basic samples while you are learning C#, every example will look wrong. The fix takes ten seconds.

Set the language once

Open the documentation and look for the language selector, usually near the top right of a topic page. Choose C#. The documentation will remember the choice for later pages, so the samples stay in the language you picked.

Why this matters more than it sounds

  • Sample code that matches your language can be pasted and tested immediately.
  • Method names and punctuation differ between the languages, so mixed samples cause real errors.
  • Consistency builds confidence when you are still learning the syntax.

When the samples still differ

Documentation ages. A topic may describe a newer version of a library than the one you have. If an example will not compile, check the version note at the top of the topic before you assume you made a mistake.

Habit to build. Keep one documentation tab open beside your editor. Read the lesson first, then use the documentation to confirm the exact spelling of a method. The reference shelf lists the best places to start.

Once your documentation shows C#, you are ready to write your first program.

New lessons by email

Leave your address and get a short note whenever a fresh lesson is published. No account needed and you can stop at any time.

Thank you. Your address has been noted in this browser session. Connect a mailing service to deliver the notes for real.