A structured learning repository combining theory (Intro) and hands-on Console & Windows Forms examples.
Foundational markdown lessons (all inside Intro/).
- Overview & Evolution
- Visual Programming Concepts
- The .NET Framework / Platform
- Visual Studio IDE Essentials
- Control Statements
- Strings
- Arrays
- Methods
- Object-Oriented Programming
- Events & Delegates
- Exceptions
- Databases & CRUD Overview
- GUI & Windows Forms Fundamentals
- Menus, Reports & MDI
- LINQ Basics
Intro to C# — By Example (Beginner)
- 00 — Hello World + Program Structure: 00_HelloWorld.cs
- 01 — Variables: 01_Variables.cs
- 02 — Data Types: 02_DataTypes.cs
- 03 — User Input: 03_UserInput.cs
- 04 — Operators & Math: 04_OperatorsMath.cs
- 05 — Strings: 05_Strings.cs
- 06 — Booleans: 06_Booleans.cs
- 07 — if..else: 07_IfElse.cs
- 08 — switch: 08_Switch.cs
- 09 — while loop: 09_WhileLoop.cs
- 10 — for loop: 10_ForLoop.cs
- 11 — break & continue: 11_BreakContinue.cs
- 12 — arrays: 12_Arrays.cs
See overview: C# Basics — README
Scenario-based examples mapped to theory:
| # | Folder | Topic | Quick Description |
|---|---|---|---|
| 01 | Console Applications/01_BasicIO | Basic IO & Variables | ReadLine, validation, interpolation |
| 02 | Console Applications/02_ControlFlow | Control Flow | Menu, loops, switch |
| 03 | Console Applications/03_Strings | Strings | Analysis utilities |
| 04 | Console Applications/04_Arrays | Arrays | Stats, sorting, 2D matrix |
| 05 | Console Applications/05_Methods | Methods | Overloads, Random, Math |
| 06 | Console Applications/06_OOP | OOP | Inheritance & polymorphism |
| 07 | Console Applications/07_Exceptions | Exceptions | Robust division tool |
| 08 | Console Applications/08_InMemoryCRUD | CRUD | List-based student manager |
| Example | Path | Concepts |
|---|---|---|
| Calculator | MoreExamples/Calculator.cs | IO, Methods, Control Flow |
| StudentScores | MoreExamples/StudentScores.cs | Collections, LINQ, File IO, CRUD |
Planned examples to be added under Form Applications/:
- Basic Form + Events (Button / TextBox validation)
- Calculator GUI (mirrors console version)
- CRUD with DataGridView (in-memory then DB)
- MDI Parent with Menus
- Crystal Report placeholder / conceptual notes
Curated real-world student projects and architecture showcases: see Samples/.
- Read Intro overview & syntax basics.
- Run BasicIO and experiment with inputs.
- Study control flow & expand calculator.
- Dive into Strings and Arrays examples.
- Learn Methods then refactor earlier code.
- Explore OOP; model simple domain.
- Add error handling (Exceptions sample).
- Build CRUD; prepare for persistence / DB.
- Transition to GUI (Forms) once fundamentals are solid.
- Study the Student Project Showcase to see how large-scale C# applications are architected.
For quick compile (no .csproj yet) ensure you have .NET SDK & Mono for execution without project files, or convert each folder into a project:
# Example (inside a sample folder)
dotnet new console -n SampleTemp
mv Program.cs SampleTemp/Program.cs
cd SampleTemp
dotnet run
Or using csc + mono on macOS:
csc Program.cs && mono Program.exe
- Keep theory in
Intro/ - Keep console examples in
Console Applications/ - Keep forms examples in
Form Applications/ - Submit full-stack / architecture showcase applications to
Samples/(see Submission Guidelines) - Each new example: its own folder + README +
Program.cs
- Exceptions theory page
- Database basics markdown
- GUI / WinForms basics markdown
- Events & Delegates markdown
- Menus & MDI markdown
- LINQ basics markdown
- Combined examples folder
- Student project showcase & architecture samples catalog
- Persist CRUD to file/JSON sample
- Database connectivity sample (ADO.NET + SQLite)
- WinForms basic form sample
- WinForms CRUD with DataGridView
- MDI + Menus + simple report export
- LINQ + EF Core sample (future)
Happy Learning!