From d137c0e74445b540bcdafc7a9e04463b4199c076 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bruyère Date: Tue, 2 Jun 2020 01:18:31 +0200 Subject: styling constants --- Samples/BasicTests/BasicTests.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Samples/BasicTests/BasicTests.cs') diff --git a/Samples/BasicTests/BasicTests.cs b/Samples/BasicTests/BasicTests.cs index fba4b70a..1a9340d5 100644 --- a/Samples/BasicTests/BasicTests.cs +++ b/Samples/BasicTests/BasicTests.cs @@ -15,6 +15,7 @@ namespace tests #if NETCOREAPP3_1 DllMapCore.Resolve.Enable (true); #endif + using (BasicTests app = new BasicTests ()) { app.Run (); } @@ -98,8 +99,11 @@ namespace tests else if (idx < 0) idx = testFiles.Length - 1; +#if NETCOREAPP3_1 Console.WriteLine ($"Loading {testFiles [idx]}. {AppDomain.CurrentDomain.MonitoringSurvivedMemorySize}"); - +#else + Console.WriteLine ($"Loading {testFiles [idx]}. {GC.GetTotalMemory(true)}"); +#endif Load (testFiles [idx]).DataSource = this; } catch (Exception ex) { (LoadIMLFragment ($"