Created
September 22, 2022 09:54
-
-
Save kevingosse/0187ae7da459143207612140d6aa8972 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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