Disposing an object
Example class:
                
public class DisposableClass : IDisposable
{
    public void Dispose() => Console.WriteLine("Disposing");
    ~DisposableClass() => Dispose();
}
                
            
main() function
                
static void Main()
{
    var dc = new DisposableClass();
    dc.Dispose();
}