A Tour of G#
Get a feel for G# through small programs and focused explanations. Read in order for an introduction, or choose the chapter that answers your question.
The Tour is a reading guide with code you can run locally, not an online execution service. Start with installation and your first program if you want to try each example.
Chapters
| Chapter | What you will learn |
|---|---|
| 1. Basics | Variables, functions, primitive types, and printing values. |
| 2. Types and values | Data models, classes, collections, and nullable values. |
| 3. Control flow | Conditions, loops, nullable bindings, and pattern matching. |
| 4. Concurrency | Structured scopes, async functions, and asynchronous sequences. |
| 5. .NET interop | Imports, library types, LINQ, delegates, events, and native interop. |
Each chapter links to the language guide or reference when you need more detail. The examples follow the documentation version selected in the header.
Choose a different path
- Already know C#? Start with G# for C# developers.
- Coming from Go? Compare the runtime and language choices in G# for Go developers.
- Coming from Kotlin? Use the Kotlin bridge to compare familiar concepts.
- Coming from Swift? Compare optionals, values, and runtime behavior.
- Exploring concurrent programs? Read the ten Go/G# pattern pairs; that page identifies its own example and measurement versions.
- Prefer to build something? Follow Trail's complete project walkthrough.
- Need a formal rule? Open the language specification.
Next: Tour: Basics.