Welcome to Learn Basic C#, your starting point for mastering C# programming! This repository contains code examples, exercises, and projects to help you learn C# from scratch.
# Clone this repository
git clone https://github.com/DeveloperWilliams/Learn-Basic-C-Sharp.git
# Navigate to the project directory.
cd Learn-Basic-C-Sharp
# Run a sample program
cd (any project eg Hello)
dotnet run
-
Fundamentals
- Hello World program
- Variables and Data Types
- Operators
- Type Conversion
- Console I/O
-
Control Flow
- Conditional Statements (if/else, switch)
- Loops (for, while, do-while, foreach)
- Break and Continue
-
Object-Oriented Programming
- Classes and Objects
- Methods
- Constructors
- Properties
- Inheritance
- Polymorphism
- Interfaces
- Abstract Classes
-
Advanced Topics
- Exception Handling
- Collections (Lists, Arrays, Dictionaries)
- LINQ
- File I/O
- Delegates and Events
- Async/Await
Explore code examples in these directories:
/Basics
- Fundamental syntax examples/OOP
- Object-oriented programming concepts/Exercises
- Practice problems with solutions/Projects
- Mini-projects to apply your knowledge
Try these exercises to test your knowledge:
- Calculator: Build a simple console calculator
- Guessing Game: Number guessing game with hints
- Student Management: Basic CRUD operations for student records
- File Encryptor: Simple text file encryption/decryption
Beginner Projects
- To-Do List Console App
- Bank Account System
- Temperature Converter
Intermediate Projects
- Inventory Management System
- Simple RPG Game
- Weather App (API Integration)
We welcome contributions! Here's how:
- Fork the repository
- Create a new branch (
git checkout -b feature/your-feature
) - Commit your changes (
git commit -m 'Add some feature'
) - Push to the branch (
git push origin feature/your-feature
) - Open a Pull Request
Recommended Learning
Tools
- NET Fiddle - Online C# compiler
- LINQPad - C# scratchpad