Skip to content

wannabexaker/CSharp22Ex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚙️ C# 22 Exercises

A complete, minimal, and slightly sarcastic journey from beginner to advanced C# — built and documented step-by-step through 22 practical lessons.

This repository is designed for anyone who wants to understand C# fast, learn how modern applications are structured, and enjoy a bit of deadpan humor along the way.
All lessons are fully runnable, commented, and written with real-world structure.


📘 Overview

Author: Tezas
Project Type: Educational (Free & Open Source)
Language: C# (.NET 8.0)
Total Lessons: 22
Goal: From “Hello World” to multi-layer enterprise structure

🧩 Lesson Structure

# Topic Focus
01 System Console Basics Output, console manipulation
02 Variables and Strings Declaration, assignment
03 Numeric Operations and Data Types Math and type handling
04 User Input and Conversion Input parsing and casting
05 Conditional Statements if, else, logical flow
06 Loops and Iterations for, while, do-while, break/continue
07 Methods and Parameters Functions, arguments
08 Exception Handling try, catch, finally
09 Classes and Properties OOP basics
10 Static, ReadOnly, Const Constant and static usage
11 Inheritance and Abstraction OOP relationships
12 Interfaces and Implementation Contracts and polymorphism
13 Enums and Switch Enumerations and control flow
14 Namespaces and Generics Code organization
15 Collections and LINQ Lists, queries, iterations
16 StringBuilder and File I/O Text manipulation, file handling
17 Async and Threads Parallel execution
18 Intro to MVC Structure and separation of logic
19 Razor Pages Intro Simple rendering logic
20 Final Boss Project Complex console project
21 Savage Refactor MVC-style enterprise refactor
22 Final Boss Enterprize Full layered app (Controllers, Data, Models, Services, Views)

🧠 Highlights

  • Progressive difficulty: builds step-by-step from basics to enterprise
  • Real-world structure: MVC, dependency injection, namespaces
  • Deadpan humor: minimal emotion, maximum clarity
  • UTF-8 ready: supports €, ©, and other civilized symbols
  • Enterprise finale: multi-layered architecture with full DI setup

🛠️ Requirements

  • .NET 8.0 SDK or newer
  • IDE: Visual Studio 2022+ or VS Code with the C# Dev Kit

🚀 Usage

  1. Open the full Visual Studio solution: CSharp22ExSolution\CSharp22ExSolution.sln

This single solution loads all 22 C# projects — each folder (ex001_... to ex022_...) represents one lesson.

  1. To run any specific lesson:
  • Right-click its project → Set as Startup Project
  • Press F5 or Ctrl+F5
  1. Or from the terminal:
cd ex006_LoopsAndIterations dotnet run

##🧾 License This repository is released as free educational material. You may reuse, modify, and share it — just keep the author’s credit. Learning is free. Refactoring your life isn’t.

##⚡ About Created by Tezas Network Engineer • Developer • Student Believes that learning C# should be practical, structured, and mildly sarcastic.


🙌 Acknowledgment

This project stands on a simple truth: someone has to teach you the foundations before you can build anything worth looking at.
Credit goes to my C# instructor, Michail Kasapoglou, whose lessons shaped the core concepts behind these exercises.

Every example here is rewritten, reorganized, expanded, and explained in my own style —
but the starting point, the mindset, and the discipline came from his teaching.

Thumbs up. 👍

About

22 fully executable C# exercises — from console I/O to enterprise-level architecture. Clean, dry, structured, and sometimes brutally honest. Each file teaches one concept. Each comment tells you why you care. Learn C# the efficient way: less theory, more typing, no nonsense.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages