TensorSharp/RefCounted.cs
/// <summary>
/// Throws an exception if the object has been destroyed, otherwise does nothing.
/// </summary>
Throws an exception if the object has been destroyed, otherwise does nothing.
Throws an exception if the object has been destroyed otherwise does nothing .
protected void ThrowIfDestroyed()
        {
            if (IsDestroyed())
            {
                throw new InvalidOperationException("Reference counted object has been destroyed");
            }
        }
protected void ThrowIfDestroyed ( ) { if ( IsDestroyed ( ) ) { throw new InvalidOperationException ( " " ) ; } }
Throws an exception if the object has been destroyed, otherwise does nothing.
Throws an exception if the object has been destroyed otherwise does nothing .