Skip to content

A beginner-friendly C# course repository covering basic syntax, variables, conditionals, loops, OOP concepts, and simple projects.

Notifications You must be signed in to change notification settings

DeveloperWilliams/Learn-Basic-C-Sharp

Repository files navigation

Learn Basic C# - A Comprehensive Beginner's Guide �

C# Logo

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.

📌 Table of Contents

🚀 Getting Started

Prerequisites

Installation

# 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

📚 Course Content

  1. Fundamentals

    • Hello World program
    • Variables and Data Types
    • Operators
    • Type Conversion
    • Console I/O
  2. Control Flow

    • Conditional Statements (if/else, switch)
    • Loops (for, while, do-while, foreach)
    • Break and Continue
  3. Object-Oriented Programming

    • Classes and Objects
    • Methods
    • Constructors
    • Properties
    • Inheritance
    • Polymorphism
    • Interfaces
    • Abstract Classes
  4. Advanced Topics

    • Exception Handling
    • Collections (Lists, Arrays, Dictionaries)
    • LINQ
    • File I/O
    • Delegates and Events
    • Async/Await

💻 Code Examples

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

🏋️ Exercises

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

🛠 Projects

Beginner Projects

  • To-Do List Console App
  • Bank Account System
  • Temperature Converter

Intermediate Projects

  • Inventory Management System
  • Simple RPG Game
  • Weather App (API Integration)

🤝 How to Contribute

We welcome contributions! Here's how:

  1. Fork the repository
  2. Create a new branch (git checkout -b feature/your-feature)
  3. Commit your changes (git commit -m 'Add some feature')
  4. Push to the branch (git push origin feature/your-feature)
  5. Open a Pull Request

📖 Resources

Recommended Learning

Tools

About

A beginner-friendly C# course repository covering basic syntax, variables, conditionals, loops, OOP concepts, and simple projects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages