Programming Languages
Learn C#
80 short lessons with interactive exercises. You start from zero and move from beginner to advanced.
- 80 lessons
- 3 levels
- Arabic & English
- Start free
What you will learn
- Write C# programs using types, variables, conditions, loops and methods
- Use arrays, collections and error handling to organize data and logic
- Design classes and objects, and apply object-oriented programming principles
- Process data with LINQ and run asynchronous tasks
About this course
A complete C# course, from zero to pro: the basics, variables and data types, then control flow, loops, methods and collections, all the way to object-oriented programming, LINQ and asynchronous programming. A powerful, widely used language from Microsoft.
Skills
- Game Development
- Desktop Apps
Lessons
Every lesson is short, and the exercises after it lock in what you learned.
Beginner level
28 lessons
- Introduction to C#
- C# and the .NET platform
- Creating your first program
- Program structure and the Main function
- Printing with Console.WriteLine
- Reading input with Console.ReadLine
- Writing Comments
- Variables
- Variable naming rules
- Data types
- Integers
- Decimal numbers
- Strings
- Formatting text
- Characters and Boolean values (char and bool)
- Using var
- Using const
- Converting between data types
- Converting text to numbers (Parse and TryParse)
- Arithmetic operations
- Order of operations
- Assignment operators
- Increment and Decrement (++ and --)
- Comparison operators
- Logical operators
- Making decisions with if and else
- Nested conditions
- The ternary operator
Intermediate level
28 lessons
- The for loop
- The while loop
- The do-while loop
- Controlling loops (break and continue)
- The switch statement
- Arrays
- The foreach loop
- Lists: List<T>
- Dictionaries: Dictionary<TKey, TValue>
- Sets with HashSet<T>
- Queues: Queue<T>
- Stacks with Stack<T>
- Functions
- Function parameters
- Returning values with return
- String methods
- Multi-line strings
- Date and time with DateTime
- Variable scope
- Optional parameters and named arguments
- Function overloading
- Using ref and out
- Handling errors
- Throwing exceptions with throw
- Creating custom exceptions
- Working with files
- Working with JSON
- Practice project
Advanced level
24 lessons
- Introduction to object-oriented programming
- Classes
- Objects
- Fields
- Properties
- Methods inside classes
- The constructor
- Using the word this
- Access modifiers
- Encapsulation
- Using the static keyword
- Inheritance
- Using the base keyword
- Virtual methods with virtual
- Overriding Methods: override
- Polymorphism
- Abstract classes
- Interfaces
- Generics
- Lambda expressions
- Querying with LINQ
- Asynchronous programming with async and await
- Tasks with Task
- The final project
Start your first lesson today
Get the Lammah app and pick “Learn C#” from the courses. Each lesson takes a few minutes, and you can start free.






