Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
GC collects object in scope
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { var obj = new NoisyFinalizer(); var random = new Random(); for (var i = 0; i < 100; i++) { var bigArray = new int[1000000]; for (var j = 0; j < bigArray.Length; j++) { bigArray[j] = random.Next(); } } Console.WriteLine("This should print before"); } } public class NoisyFinalizer { ~NoisyFinalizer() { Console.WriteLine("This should print after!"); } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
D15
Volatile madness
bc160400236
checker
Generics Operator test
conter 1 in binnary number
Student Cables
Code
EvenOdd
Math Prime Numbers
Please log in to post a comment.