Use new ArgumentNullException and ObjectDisposedException throw-helper API (#4163)
This commit is contained in:
@ -411,10 +411,7 @@ namespace Ryujinx.Memory.Tracking
|
||||
/// </summary>
|
||||
public void Dispose()
|
||||
{
|
||||
if (_disposed)
|
||||
{
|
||||
throw new ObjectDisposedException(GetType().FullName);
|
||||
}
|
||||
ObjectDisposedException.ThrowIf(_disposed, this);
|
||||
|
||||
_disposed = true;
|
||||
|
||||
|
Reference in New Issue
Block a user