Knowledge baseExam Center
ENEnglish
Choose language13

Learn C# — Basic

Learn C# fundamentals: variables, conditions, loops, collections, methods and simple object models. Process fixed data and build correct console reports.

COURSE OVERVIEWREADY
Lessons: 48
Quizzes: 8
All steps: 56
$Ready to start
Knowledge base for this technology

What you will learn

  • Use variables, operators, conditions and loops to process data.
  • Work with arrays, lists, dictionaries and basic LINQ operations.
  • Create methods, classes, properties and constructors, and understand copying values and references.
  • Validate data, handle exceptions, and format numbers and time in predictable reports.

Course curriculum

Work through the curriculum step by step. Completed stages are marked, and you can open the next available stage.

48 lessons8 quizzes56 steps total
  1. 01LESSON
    LESSON 1: First program and Console.WriteLine (deterministic output)Available now
  2. 02LESSON
    LESSON 2: Variables and simple types (int, double, bool, char)Locked
  3. 03LESSON
    LESSON 3: Literals, conversions, and built-in castsLocked
  4. 04LESSON
    LESSON 4: Arithmetic and assignment operatorsLocked
  5. 05LESSON
    LESSON 5: Comparison and logical operatorsLocked
  6. 06LESSON
    LESSON 6: The if statement — simple conditionsLocked
  7. 01QUIZ
    Quiz 1: applying knowledge from lessons 1–6Locked
  8. 07LESSON
    LESSON 7: if/else if/else — multiple casesLocked
  9. 08LESSON
    LESSON 8: Switch (classic) — basicsLocked
  10. 09LESSON
    LESSON 9: switch expression — modern syntax with simple examplesLocked
  11. 10LESSON
    LESSON 10: The while loopLocked
  12. 11LESSON
    LESSON 11: The do…while loopLocked
  13. 12LESSON
    LESSON 12: The for loopLocked
  14. 02QUIZ
    Quiz 2: applying knowledge from lessons 7–12Locked
  15. 13LESSON
    LESSON 13: foreach and iterating over collectionsLocked
  16. 14LESSON
    LESSON 14: Nested loops and flow control (break, continue)Locked
  17. 15LESSON
    LESSON 15: One-dimensional arrays — declaration, initialization, readingLocked
  18. 16LESSON
    LESSON 16: Iterating over an array and basic operations (min, max, sum)Locked
  19. 17LESSON
    LESSON 17: Modifying array elements and simple searchingLocked
  20. 18LESSON
    LESSON 18: Multidimensional (2D) arrays — iteration and applicationsLocked
  21. 03QUIZ
    Quiz 3: applying knowledge from lessons 13–18Locked
  22. 19LESSON
    LESSON 19: Introduction to List<T> — adding/removing/indexesLocked
  23. 20LESSON
    LESSON 20: Introduction to Dictionary<TKey,TValue> — key→value mappingLocked
  24. 21LESSON
    LESSON 21: The string type — basics, concatenation, interpolationLocked
  25. 22LESSON
    LESSON 22: String methods (Trim, ToUpper, Contains)Locked
  26. 23LESSON
    LESSON 23: String operations: Substring, Replace, SplitLocked
  27. 24LESSON
    LESSON 24: char[] and the differences between string and a character arrayLocked
  28. 04QUIZ
    Quiz 4: applying knowledge from lessons 19–24Locked
  29. 25LESSON
    LESSON 25: Methods — void and returning values (return)Locked
  30. 26LESSON
    LESSON 26: Parameters and method overloadingLocked
  31. 27LESSON
    LESSON 27: Parameter modifiers ref, out, in: when and howLocked
  32. 28LESSON
    LESSON 28: Variable scope and object lifetimeLocked
  33. 29LESSON
    LESSON 29: Static methods and static fields: basicsLocked
  34. 30LESSON
    LESSON 30: Classes: definition, objects, referencesLocked
  35. 05QUIZ
    Quiz 5: applying knowledge from lessons 25–30Locked
  36. 31LESSON
    LESSON 31: Fields and encapsulation — why hide stateLocked
  37. 32LESSON
    LESSON 32: Properties (get/set) and auto-properties — C# fundamentalsLocked
  38. 33LESSON
    LESSON 33: Instance methods and the this keywordLocked
  39. 34LESSON
    LESSON 34: Constructors and object initializationLocked
  40. 35LESSON
    LESSON 35: Object and collection initializersLocked
  41. 36LESSON
    LESSON 36: Structs (struct) vs classes — semantic differencesLocked
  42. 06QUIZ
    Quiz 6: applying knowledge from lessons 31–36Locked
  43. 37LESSON
    LESSON 37: enum — enumeration types and casting to numbersLocked
  44. 38LESSON
    LESSON 38: Tuples ((T1, T2)) and deconstructionLocked
  45. 39LESSON
    LESSON 39: Exception handling: try/catch — basicsLocked
  46. 40LESSON
    LESSON 40: finally and typical exceptions in beginner codeLocked
  47. 41LESSON
    LESSON 41: Input data validation without exceptions (guard clauses)Locked
  48. 42LESSON
    LESSON 42: Formatting numbers and text (ToString, interpolation)Locked
  49. 07QUIZ
    Quiz 7: applying knowledge from lessons 37–42Locked
  50. 43LESSON
    LESSON 43: DateTime — fixed dates and times in UTCLocked
  51. 44LESSON
    LESSON 44: TimeSpan — time differencesLocked
  52. 45LESSON
    LESSON 45: A simple introduction to LINQ: Where, Select, OrderBy on in-memory listsLocked
  53. 46LESSON
    LESSON 46: Designing simple data models (small domain classes)Locked
  54. 47LESSON
    LESSON 47: Working with arrays and lists of objects (filtering, searching)Locked
  55. 48LESSON
    LESSON 48: Mini-refactoring: splitting code into methods and readabilityLocked
  56. 08QUIZ
    Quiz 8: applying knowledge from lessons 43–48Locked
  57. +EXAM
    Confirm your skills with an examPreparing with this course is optional. You can choose a certification exam for this language and level without completing the course or quizzes. Check your account access and confirm exam authorization.Other status