From 0d3b82477ecbf7128340b6725a79413427c68748 Mon Sep 17 00:00:00 2001 From: Berkan Diler Date: Tue, 27 Dec 2022 20:27:11 +0100 Subject: Use new ArgumentNullException and ObjectDisposedException throw-helper API (#4163) --- Ryujinx.Memory/Tracking/RegionHandle.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Ryujinx.Memory/Tracking') diff --git a/Ryujinx.Memory/Tracking/RegionHandle.cs b/Ryujinx.Memory/Tracking/RegionHandle.cs index affc84ab..86c77abc 100644 --- a/Ryujinx.Memory/Tracking/RegionHandle.cs +++ b/Ryujinx.Memory/Tracking/RegionHandle.cs @@ -411,10 +411,7 @@ namespace Ryujinx.Memory.Tracking /// public void Dispose() { - if (_disposed) - { - throw new ObjectDisposedException(GetType().FullName); - } + ObjectDisposedException.ThrowIf(_disposed, this); _disposed = true; -- cgit v1.2.3