Mohammed Rafi Khan

Mohammed Rafi Khan

  • NA
  • 349
  • 34.5k

Destructors in C# is automatically by .Net frame work ?

Dec 1 2019 8:29 AM
Hi EveryOne,
 
 
  Destructors in C# is automatically by .Net framework. Then why to Implement  Destructors like 
 
   ~Program()
   {
      Console.WriteLine("Destructor was called");
   }
 
 Or when we can implement this? 
 
 
 
 
 
 
 
 

Answers (3)