🎯 Goal: Learn C# programming from scratch to mastery!
🎓 Level: From beginner to advanced
⚡ Feature: Ready-to-run code examples for every topic
| Topic | Description | Status |
|---|---|---|
| Welcome | Welcome to the C# world! | ✅ |
| Variables | Variables and data types | ✅ |
| User-Input | Getting input from users | ✅ |
| Type-Casting | Type conversions | ✅ |
| Constants | Constants | ✅ |
| Topic | Description | Status |
|---|---|---|
| Arithmetic-Operators | Arithmetic operations | ✅ |
| Logical-Operators | Logical operators | ✅ |
| Conditional-Operator | Conditional operator (ternary) | ✅ |
| If-Statements | Conditional statements | ✅ |
| Switches | Switch-case structure | ✅ |
| Topic | Description | Status |
|---|---|---|
| For-Loops | For loops | ✅ |
| While-Loops | While loops | ✅ |
| Foreach-Loops | Foreach loops | ✅ |
| Nested-Loops | Nested loops | ✅ |
| Topic | Description | Status |
|---|---|---|
| Arrays | Arrays | ✅ |
| Multidimensional-Arrays | Multidimensional arrays | ✅ |
| Lists | List structures | ✅ |
| Array-of-Objects | Object arrays | ✅ |
| List-of-Objects | Object lists | ✅ |
| Topic | Description | Status |
|---|---|---|
| Classes | Classes | ✅ |
| Objects | Objects | ✅ |
| Constructors | Constructor methods | ✅ |
| Overloaded-Constructors | Overloaded constructors | ✅ |
| Inheritance | Inheritance | ✅ |
| Abstract-Classes | Abstract classes | ✅ |
| Interfaces | Interfaces | ✅ |
| Polymorphism | Polymorphism | ✅ |
| Topic | Description | Status |
|---|---|---|
| Methods | Methods | ✅ |
| Method-Overloading | Method overloading | ✅ |
| Method-Overriding | Method overriding | ✅ |
| Objects-as-Arguments | Objects as parameters | ✅ |
| Params-Keyword | Params keyword | ✅ |
| Return-Keyword | Return keyword | ✅ |
| Static | Static members | ✅ |
| Topic | Description | Status |
|---|---|---|
| Getters-And-Setters | Getter and Setter methods | ✅ |
| Auto-Implemented-Properties | Auto-implemented properties | ✅ |
| Enums | Enumerations | ✅ |
| Generics | Generic types | ✅ |
| Exception-Handling | Exception handling | ✅ |
| Multithreading | Multithreading | ✅ |
| Topic | Description | Status |
|---|---|---|
| String-Methods | String methods | ✅ |
| String-Interpolation | String interpolation | ✅ |
| ToString-Method | ToString method | ✅ |
| Random-Numbers | Random numbers | ✅ |
- Visual Studio 2022 or Visual Studio Code
- .NET 6.0 or newer version
- Windows/macOS/Linux (Cross-platform!)
# Clone the repository
git clone https://github.com/Xjectro/c-sharp-lessons.git
# Navigate to project folder
cd c-sharp-lessons
# Run any lesson
cd Sources/Welcome
dotnet run- Start with Welcome 👋
- Learn Variables and data types 📝
- Explore If-Statements for decision making 🤔
- Master Loops for iteration 🔄
- Learn OOP concepts 🏗️
- Advance with Advanced topics 🚀
- ✅ Beginner: Complete first 5 lessons
- ✅ Developing: Finish OOP topics
- ✅ Expert: Complete all lessons
- ✅ Master: Create your own project!
💡 Tip #1: Try modifying the code after running each lesson!
💡 Tip #2: Don't be afraid of errors, read the error messages and try to understand them!
💡 Tip #3: Try using these codes in your own projects!
This project is open source and we welcome your contributions!
- Fork it 🍴
- Create feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request 🎉
- GitHub: @Xjectro
- Issues: For any questions, please open an issue
This project is licensed under the MIT License.
If you found this learning kit helpful, don't forget to give it a ⭐!