Skip to content

Instantly share code, notes, and snippets.

View a-usr's full-sized avatar

usr a-usr

View GitHub Profile
@a-usr
a-usr / Demo.cs
Created November 13, 2023 09:39
A small demonstration of when an object is eligible for Garbage Collection in C#
using Terminal.Gui;
internal class Program
{
static View? StaticReferencetoTestObj2;
public View? InstanceReferenceToTestObj3;
private static void Main(string[] args)
{
// create new instance of program class
Program This = new Program();