JavaRush
AI Academy
new
Promotion
Learning
Courses
Tasks
Quizzes
Games
Help
Schedule of nudges
Internship
Community
Users
Forum
Chat
Articles
Activities
Reviews
Subscriptions
Light theme

Lectures

  • Reviews
  • About us
  • CS50
Start
Start learning
Start learning
  • My progress
  • Courses
  • Quest map
  • Lectures
  • Memory in C#: Stack, Heap and Garbage Collector ( GC)

    C# SELF
    65 level,0 lecture
    Let's break down how memory is managed in .NET: what's the difference between the stack and the heap, where values and references live, how the Garbage Collector GC works (including generations), and why this matters for performance. We'll also cover unmanaged resources, finalizers, the IDisposable interface and the using statement — with practical examples and tips.
    Open
  • Low-level memory management in C#

    C# SELF
    65 level,1 lecture
    In this lecture we cover how to get low-level control over memory in C#: pointers and the unsafe context, pinning objects via GCHandle and the fixed operator, stack buffers with stackalloc (including via Span<T>), and interop with native code via P/Invoke ( DllImport, Marshal). We'll talk about benefits, risks, and best practices for using these tools safely.
    Open
  • Introduction to Span<T> and ReadOnlySpan<T>

    C# SELF
    65 level,2 lecture
    Fast “slices” without copying data: in this lecture we'll go over how to use Span<T> and ReadOnlySpan<T> to work with arrays, strings and buffers, how to create slices via AsSpan() and Slice(), when stackalloc makes sense, why these types are stack-only and what limitations that brings. We'll show practical examples, patterns and common mistakes so you write more performant code and put less pressure on the GC.
    Open
  • New features Span<T>

    C# SELF
    65 level,3 lecture
    A practical guide to Span<T> and ReadOnlySpan<T>: how to create slices without copying, work with stack memory via stackalloc, use ranges .. and indices-from-end ^1, apply the new C# 14 patterns to arrays and slices, and avoid common mistakes. We'll cover examples with AsSpan(), strings, performance and safety.
    Open
  • Memory<T> and ReadOnlyMemory<T>

    C# SELF
    65 level,4 lecture
    We break down long-lived memory slices in .NET: how Memory<T> and ReadOnlyMemory<T> differ from Span<T>, where to use them (including with await), how to safely get a Span/ ReadOnlySpan, work with strings and arrays without copying, and avoid common traps.
    Open
Courses
  • Java Course
  • Python Course
  • Development with Claude Code
  • All 16 courses
University
  • Java FullStack
  • Python FullStack
  • AI Native Developer
  • Web FullStack
Community
  • Articles
  • Forum
  • Help with Tasks
Company
  • About us
  • Contacts
  • Reviews
  • Pricing
  • Questions and answers
JavaRush JavaRush: online courses in Java and other programming languages, where you learn by solving tasks. We started in 2012 with a Java course, and today there are 16 courses: Java and Spring, Python, web development, SQL, Go, C#, C++, Kotlin, Swift, Docker and AI development. More than 10,000 tasks with instant checks, and the first level of any course is free. Learn on your own or with a mentor at JavaRush University.
Follow us
Язык интерфейса
Русский
English
Українська
"Programmers are not born" © 2026 JavaRush Terms of Use and Privacy policy
MastercardVisa
"Programmers are not born" © 2026 JavaRush Terms of Use and Privacy policy