Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
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
1
Find median in a stream
frgthyji8u7ytgfd
różne wersje parsowania kwoty i daty (CultureInfo)
Math 5.83
2.1 Basic types: Lists and Linq beauty
Dependency Injection
Imp
vcdgdfgdfdfd
a1
ProbableCause