Syllabus

  1. 01Hello, C#Meet C# and .NET, read the structure of a C# program, print to the console, and write comments.5 lessons
    1. 01Welcome to C#
    2. 02The Structure of a Program
    3. 03Printing to the Console
    4. 04Comments and Console Input
    5. 05Quiz: Hello, C#
  2. 02Data Types and VariablesStore values in typed variables, choose between int, double, decimal, bool, char and string, let the compiler infer types with var, and convert safely between types.6 lessons
    1. 01Variables
    2. 02Numeric Types
    3. 03Booleans, Characters and Strings
    4. 04var, Type Safety and Conversions
    5. 05Constants
    6. 06Quiz: Data Types and Variables
  3. 03Numbers and OperatorsCalculate with C#'s arithmetic operators, handle integer division and remainders, update variables in place, control evaluation order, and use the Math class.5 lessons
    1. 01Arithmetic Operators
    2. 02Updating Values
    3. 03Order of Operations
    4. 04The Math Class
    5. 05Quiz: Numbers and Operators
  4. 04StringsWork with text in C#: index into strings, build them with concatenation and interpolation, format numbers, search and transform text with string methods, compare strings correctly, and split, join and build strings efficiently.6 lessons
    1. 01String Basics
    2. 02Concatenation and Interpolation
    3. 03Searching and Transforming Text
    4. 04Comparing Strings
    5. 05Splitting, Joining and Building Strings
    6. 06Quiz: Strings
  5. 05Logic and ConditionalsCompare values to get booleans, combine conditions with logical operators, and make decisions with if, else if, else, switch statements, switch expressions and the conditional operator.7 lessons
    1. 01Booleans and Comparisons
    2. 02Logical Operators
    3. 03If and Else
    4. 04Else If Chains
    5. 05Switch Statements
    6. 06Switch Expressions and the Conditional Operator
    7. 07Quiz: Logic and Conditionals
  6. 06ArraysStore fixed-size collections of values in arrays: declare and initialize them, read and change elements by index, and use the Array class to sort, search, reverse and copy.5 lessons
    1. 01Creating Arrays
    2. 02Reading and Changing Elements
    3. 03The Array Class
    4. 04Multidimensional Arrays
    5. 05Quiz: Arrays
  7. 07LoopsRepeat code with while, do-while, for and foreach loops, steer loops with break and continue, and use loops to total, search and transform arrays.6 lessons
    1. 01While and Do-While Loops
    2. 02For Loops
    3. 03Foreach Loops
    4. 04Break and Continue
    5. 05Loop Patterns
    6. 06Quiz: Loops
  8. 08ListsUse List<T> for collections that grow and shrink: create lists, add, insert and remove items, search and sort them, work with ranges, and loop over them safely.5 lessons
    1. 01Creating Lists
    2. 02Adding, Inserting and Removing
    3. 03Searching and Sorting
    4. 04Ranges and Looping Over Lists
    5. 05Quiz: Lists
  9. 09MethodsOrganize code into methods: define and call them, pass arguments (including optional and named ones), return values, report extra results with out parameters, overload methods, and write compact expression-bodied members and lambdas.7 lessons
    1. 01Defining and Calling Methods
    2. 02Parameters and Arguments
    3. 03Return Values
    4. 04Out Parameters
    5. 05Method Overloading
    6. 06Lambda Expressions
    7. 07Quiz: Methods
  10. 10Classes and ObjectsDefine your own types with classes. Give them fields and methods, create objects with new, expose data through properties, and initialize objects with constructors.5 lessons
    1. 01Defining a Class
    2. 02Instance Methods
    3. 03Properties
    4. 04Constructors
    5. 05Quiz: Classes and Objects
  11. 11EncapsulationProtect an object's data and rules. Control access with access modifiers, validate changes in properties, make data read-only with private setters, get-only properties and readonly fields, and share members with static.5 lessons
    1. 01Access Modifiers
    2. 02Validating Properties
    3. 03Read-Only Data
    4. 04Static Members
    5. 05Quiz: Encapsulation