Code sample describing basics of resource disposal and garbage collection in C#
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
DisposeTest
.gitattributes
.gitignore
LICENSE
README.md

README.md

GarbageCollectionSample

This code sample shows a basic console app that reads a file and prints it's content. It also shows how to dispose unmanaged resources and the basic Dispose pattern of C#.

This code is referenced here as a part of the following posts:

  1. I thought I knew C# : Garbage collection & disposal. Part-I