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) --- ARMeilleure/Common/Counter.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'ARMeilleure/Common/Counter.cs') diff --git a/ARMeilleure/Common/Counter.cs b/ARMeilleure/Common/Counter.cs index 4b0627c1..d7210d15 100644 --- a/ARMeilleure/Common/Counter.cs +++ b/ARMeilleure/Common/Counter.cs @@ -49,10 +49,7 @@ namespace ARMeilleure.Common { get { - if (_disposed) - { - throw new ObjectDisposedException(null); - } + ObjectDisposedException.ThrowIf(_disposed, this); return ref _countTable.GetValue(_index); } -- cgit v1.2.3