Mohammed Rafi Khan

Mohammed Rafi Khan

  • 1.7k
  • 201
  • 16.6k

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)