Module 02 of 12

C# Language Basics

Lessons

About This Module

C# is a strongly typed language, so almost every line you write depends on knowing what kind of data you're holding and what you're allowed to do with it. Get the basics right now and the compiler becomes a helpful reviewer instead of a source of confusing errors.

This module starts with a fast tour of the fundamentals: variables, constants, type conversion, and operators. It then goes deeper on the most important distinction in the type system — value types vs. reference types and how they behave in memory — before looking at var vs. dynamic, and finishing with the string methods you'll reach for in nearly every program.

Watch the lessons in order, then continue on to Control Flow & Methods.

Lessons

4 videos
01

C# Tutorial For Beginners - Learn C# Basics in 1 Hour

Programming with Mosh walks through your first C# program, then variables and constants, scope, type conversion, and operators, a broad foundation for everything else in this module.

02

C# Heap vs Stack explained

Hubert Mijalski explains how C# manages memory, the difference between value types and reference types, what happens when you pass each kind to a method, and how ref and out change that.

03

Dynamic vs Var in C#

Tim Corey compares var, which is typed at compile time, with dynamic, which is resolved at runtime, and shows why dynamic should be used sparingly.

04

18: String Class Methods in C# | String Methods | C# Tutorial For Beginners

Andrew goes through the frequently used methods of the String class, the everyday toolkit for searching, changing, and cleaning up text.