0

How to delete object in c#?

l want to creat an object from a class that contain a Destructor how to execut the Destructor

30th Dec 2020, 1:50 PM
Ali Hesham
Ali Hesham - avatar
1 Respuesta
+ 1
you don’t need a destructor in C# unless you need to deallocate some unmanaged resources (use IDisposable interface for this). GC takes care of destroying objects.
30th Dec 2020, 2:28 PM
Flash