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.
Type Name Latest commit message Commit time
Failed to load latest commit information.


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