C#
Introduction to Programming with C#
C# from scratch: installing .NET, from variables to classes, from error handling to LINQ. Every lesson has code you can run, an exercise and a mini quiz.
- LESSONS
- 13
- TOTAL TIME
- 47 min
- LEVEL
- Beginner
Start
0% completed · 0/13 lessons
// Curriculum
- 01 Why C#? Installing .NET and Your First Project Learn what C# and .NET are and where they are used, then install the .NET SDK and create your first console project from the terminal. 3 min
- 02 Your First Program: Main and Top-Level Statements Print to the screen and read user input with Console.WriteLine and ReadLine, and learn the difference between the classic Main method and modern top-level statements. 3 min
- 03 Variables and Data Types Learn the int, double, decimal, bool, char and string types, plus var, const and nullable variables, with an Ohm's law example. 3 min
- 04 Operators and Type Conversion Learn arithmetic, comparison and logical operators, the integer division trap, and safe conversion with Parse, TryParse and Convert. 3 min
- 05 Conditions: if, switch and the switch Expression Learn to make your program decide: if/else if/else, the classic switch, the modern switch expression and the ternary operator. 3 min
- 06 Loops: for, while, do-while, foreach Learn to repeat the same job again and again with for, while, do-while and foreach, using series/parallel resistance and multiplication table examples. 4 min
- 07 Methods: Breaking Code into Pieces Turn repeated work into methods; learn parameters, return values, default values, overloading and recursion. 4 min
- 08 Arrays and List<T> Learn to keep many values under one name: fixed-size arrays, the flexible List<T>, and a sensor data average example. 4 min
- 09 Classes and Objects Step into object-oriented programming: classes, objects, fields, properties, constructors and static members, while writing a Resistor class. 4 min
- 10 Inheritance, Abstract Classes and Interfaces Learn to move shared features into a base class, polymorphism with virtual/override, and defining contracts with interface, using a sensor example. 4 min
- 11 Error Handling: try, catch, finally Keep your program from crashing when something goes wrong: the exception concept, try/catch/finally, throw, your own exception class and cleanup with using. 4 min
- 12 Introduction to LINQ An elegant way to query collections: Where, Select, OrderBy, Average, Max, GroupBy and lambda expressions, on measurement data. 4 min
- 13 Bonus Mini Project: Engineer's Calculator Combine what you have learned: a menu-driven, error-tolerant console calculator covering Ohm's law, series/parallel resistance and grade averages. 4 min
// Final exam and certificate
20 random questions from the lessons, 30 minutes, pass mark 70%. If you pass, you get a verifiable certificate of achievement (with a QR code).
Take the final exam