Skip to content

Instantly share code, notes, and snippets.

@kevingosse
Created September 22, 2022 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevingosse/0187ae7da459143207612140d6aa8972 to your computer and use it in GitHub Desktop.
Save kevingosse/0187ae7da459143207612140d6aa8972 to your computer and use it in GitHub Desktop.
void Test()
{
var obj = new Object();
DoStuffWithObj(obj);
// At this point, the GC knows the object isn't used anymore and may collect obj
DoStuff();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment