HOME > Development > C# Memory Tricks- Learn How To Master The Garbage Collector

C# Memory Tricks- Learn How To Master The Garbage Collector

  • Development
  • Apr 18, 2025
SynopsisC# Memory Tricks: Learn How To Master The Garbage Collector,...
C# Memory Tricks- Learn How To Master The Garbage Collector  No.1

C# Memory Tricks: Learn How To Master The Garbage Collector, available at $84.99, has an average rating of 4.54, with 28 lectures, 2 quizzes, based on 1552 reviews, and has 9167 subscribers.

You will learn about Learn how the Garbage Collector works Master .NET memory optimization Discover the truth about finalizers Learn how to measure the memory footprint of your code The unexpected memory footprint of List resizing Structs versus classes – which one is better? What assumptions does the GC make about object size and lifetime? Manual deallocation with the Dispose pattern and much more! This course is ideal for individuals who are Beginner, intermediate, and advanced C# programmers who want to learn how to master the garbage collector. or Developers who are about to take a job interview and need to prepare for questions about memory allocation in .NET or Professionals who are writing a section of mission-critical code in a large C# project It is particularly useful for Beginner, intermediate, and advanced C# programmers who want to learn how to master the garbage collector. or Developers who are about to take a job interview and need to prepare for questions about memory allocation in .NET or Professionals who are writing a section of mission-critical code in a large C# project.

Enroll now: C# Memory Tricks: Learn How To Master The Garbage Collector

Summary

Title: C# Memory Tricks: Learn How To Master The Garbage Collector

Price: $84.99

Average Rating: 4.54

Number of Lectures: 28

Number of Quizzes: 2

Number of Published Lectures: 28

Number of Published Quizzes: 2

Number of Curriculum Items: 30

Number of Published Curriculum Objects: 30

Original Price: $89.99

Quality Status: approved

Status: Live

What You Will Learn

  • Learn how the Garbage Collector works
  • Master .NET memory optimization
  • Discover the truth about finalizers
  • Learn how to measure the memory footprint of your code
  • The unexpected memory footprint of List resizing
  • Structs versus classes – which one is better?
  • What assumptions does the GC make about object size and lifetime?
  • Manual deallocation with the Dispose pattern
  • and much more!
  • Who Should Attend

  • Beginner, intermediate, and advanced C# programmers who want to learn how to master the garbage collector.
  • Developers who are about to take a job interview and need to prepare for questions about memory allocation in .NET
  • Professionals who are writing a section of mission-critical code in a large C# project
  • Target Audiences

  • Beginner, intermediate, and advanced C# programmers who want to learn how to master the garbage collector.
  • Developers who are about to take a job interview and need to prepare for questions about memory allocation in .NET
  • Professionals who are writing a section of mission-critical code in a large C# project
  • Modern computers have loads of memory. But it’s very easy to burn through it all in seconds if your code is not efficient about allocating and using memory.

    Did you know that one simple mistake can make your code allocate 1600 times more memory than absolutely necessary?

    Don’t be ‘that developer’ who keeps crashing the development server with an OutOfMemory exception!

    And you certainly don’t want to be responsible for inflating the hardware budget. Can you imagine having to explain to your team that 512 GB of memory is not enough to run your code on the production server?

    Let me help you.

    It doesn’t have to be like this. If you have a good understanding of the garbage collection process and follow a few simple best practices, you can dramatically reduce the memory footprint of your code.

    Sound good?

    In the last 10 years I have learned the secrets of garbage collection in .NET, and in this course I am going to share them all with you.

    In a series of short lectures I will take a detailed look at the garbage collection process. I will show you all of the memory allocation problems you can expect when writing C# code, like unexpected boxing, string duplication, collection resizing, and more. I’ll teach you quick and easy strategies to resolve these problems.

    By the end of this course you will be able to master the garbage collector.

    Why should you take this course?

    You should take this course if you are a beginner or intermediate C# developer and want to take your skills to the next level. Garbage collection and memory management might sound complicated, but all of my lectures are very easy to follow and I explain all topics with clear code and many instructive diagrams. You’ll have no trouble following along.

    Or maybe you’re working on a critical section of code in a C# project, and need to make sure your memory usage is as efficient as possible? The tips and tricks in this course will help you immensely.

    Or maybe you’re preparing for a C# related job interview? This course will give you an excellent foundation to answer any questions they might throw at you.

    Course Curriculum

    Chapter 1: Introduction

    Lecture 1: Course Introduction

    Lecture 2: Meet Your Instructor

    Lecture 3: Introduction To .NET Memory Management

    Lecture 4: Windows, OS/X or Linux?

    Lecture 5: Background Info – About Me

    Chapter 2: Fundamentals Of The .NET Framework

    Lecture 1: Section Introduction

    Lecture 2: The Stack

    Lecture 3: The Heap

    Lecture 4: Value Types

    Lecture 5: Reference Types

    Lecture 6: Boxing And Unboxing

    Lecture 7: Section Recap

    Chapter 3: A Detailed Look At Garbage Collection

    Lecture 1: Section Introduction

    Lecture 2: Garbage Collection In .NET

    Lecture 3: How To Optimise Your Code For Garbage Collection

    Lecture 4: Finalisers in .NET

    Lecture 5: The Dispose Pattern

    Lecture 6: Section Recap

    Chapter 4: Simple Tricks To Improve Memory Allocation In Your Code

    Lecture 1: Section Introduction

    Lecture 2: Avoid Boxing And Unboxing

    Lecture 3: Do Not Concatenate Strings

    Lecture 4: Use Structs Instead Of Classes

    Lecture 5: Always Pre-Size Collections

    Lecture 6: Avoid Calling ToList In LINQ Expressions

    Lecture 7: Can We Modify Strings Directly?

    Lecture 8: Section Recap

    Chapter 5: Final Words

    Lecture 1: Course Recap

    Lecture 2: Bonus Offer

    Instructors

  • C# Memory Tricks- Learn How To Master The Garbage Collector  No.2
    Mark Farragher
    Microsoft Certified Trainer
  • Rating Distribution

  • 1 stars: 8 votes
  • 2 stars: 11 votes
  • 3 stars: 79 votes
  • 4 stars: 564 votes
  • 5 stars: 890 votes
  • Frequently Asked Questions

    How long do I have access to the course materials?

    You can view and review the lecture materials indefinitely, like an on-demand channel.

    Can I take my courses with me wherever I go?

    Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don’t have an internet connection, some instructors also let their students download course lectures. That’s up to the instructor though, so make sure you get on their good side!