Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
How to delete object in c#?
l want to creat an object from a class that contain a Destructor how to execut the Destructor
1 Resposta
+ 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.