C# fundamentals
↑This is both a structured learning path and a standalone reference. Start with variables or jump directly to a question, such as what public static int means or when to choose private over protected.
Each lesson includes a concise definition, when and why to use the feature, practical C# snippets, common mistakes and a small exercise with a revealable answer. The examples primarily target modern .NET console programs; Unity-specific differences are called out.
Start with the language
Section titled “Start with the language”Control flow and reusable code
Section titled “Control flow and reusable code”Classes and object-oriented C#
Section titled “Classes and object-oriented C#”- Classes and constructors
- Access modifiers
- Static, const and readonly
- Properties
- Inheritance and polymorphism
- Abstract classes and interfaces
