Esempio n. 1
0
 private static void GetDate()
 {
     using (var databaseState = new UnmanagedDatabaseState())
     //var databaseState = new UnmanagedDatabaseState();
     {
         Console.WriteLine(databaseState.GetDate());
     }
 }
Esempio n. 2
0
 private static void GetDate()
 {
     //using (var databaseState = new UnmanagedDatabaseState())
     var databaseState = new UnmanagedDatabaseState();
     {
         Console.WriteLine(databaseState.GetDate());
     }
 }
Esempio n. 3
0
 private static void GetDate()
 {
     // Making our app an "unmanaged memory hog". Chances are slim that some CG trigger starts collection in response of unmanaged heap bloating.
     // CG does not care about unmanaged resources!
     //using (UnmanagedDatabaseState databaseState = new UnmanagedDatabaseState())
     var databaseState = new UnmanagedDatabaseState();
     {
         Console.WriteLine(databaseState.GetDate());
     }
 }