Backends/SiaNet.Backend.Torch/THFile.cs
/// <summary>
///   Implements the .NET Dispose pattern.
/// </summary>
Implements the .NET Dispose pattern.
Implements the . NET Dispose pattern .
protected void Dispose(bool disposing)
        {
            if (IsOpen)
            {
                Close();
            }
            if (disposing)
            {
                handle.Dispose();
                handle = null;
            }
        }
protected void Dispose ( bool disposing ) { if ( IsOpen ) { Close ( ) ; } if ( disposing ) { handle . Dispose ( ) ; handle = null ; } }
Implements the .NET Dispose pattern.
Implements the . NET Dispose pattern .
disposing
bool