Skip to content
0:00 / 0:00

#csharp#dotnet#heap

C# Heap vs Stack explained

Hubert Mijalski

846 subscribers • 2 videos on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Presented by Hubert Mijalski

Intermediate. Assumes working knowledge.

5.4K views3 years ago1 recommendation

Programming languagesSystems programmingMemory managementPerformance and optimization

Hubert Mijalski explains the differences between the heap and the stack in C#, including value types, reference types, and memory management.

Explaining Heap and Stack differences in C#. Reference Types vs Value Types - where variable lives affect how code behaves. Exploring real-life examples of variable type differences. Explaining ref and out keywords. Chapters: Intro How does C# manage memory Value Type vs Reference Type Code Demo I Passing different variables to methods Code Demo II Ref keyword explained Out keyword explained Wrap up

Why it's here

1 person recommends this

What people say. Recommended as a clear explanation of memory management, stack, and heap in C#.

u/kyrCoolerin r/dotnet • Recommends

Stack vs Heap explained in C#