Join Gerry O'Brien for an in-depth discussion in this video Working with the garbage collector, part of Learning C#.
When writing code within the .NET framework in…a C# application, it's important that you're aware…of how the compiler and how the computer…handle and manage the resources required by your application.…We're going to take a look at garbage collection…and the garbage collector within the .NET framework.…It's kind of an odd name for a way of…managing the memory resources in a computer, but garbage collection…essentially means that the .Net framework, the compiler, and the…operating system are handling resources that are no longer required.…
So much like you would throw away something into…the garbage at home when you no longer need it.…We're going to do the same thing with our data types within the .NET framework.…So remember, every type in your…application is allocated memory in the computer.…The Garbage Collection will deal with reference types, which are the…classes or the objects that we create within our applications themselves.…Reference types remain in scope until they are no longer needed.…That's in contrast to value types because value…
- Installing C#
- Working with loops
- Controlling program flow
- Using variables
- Building functions
- Creating and instantiating classes
- Catching errors
- Managing resources with the garbage collector
- Building collections
Skill Level Beginner
1. Introducing C#
2. C# Language Elements
3. Object-Oriented Programming in C#
4. Structured Exception Handling
5. Resource Management in C#
6. Extensible Types in C#
7. Windows Apps in C#
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.