aboutsummaryrefslogtreecommitdiff
path: root/ARMeilleure/Common/Counter.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ARMeilleure/Common/Counter.cs')
-rw-r--r--ARMeilleure/Common/Counter.cs5
1 files changed, 1 insertions, 4 deletions
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);
}