diff --git a/src/DotRecast.Core/Buffers/RcRentedArray.cs b/src/DotRecast.Core/Buffers/RcRentedArray.cs index 793fdad..901b603 100644 --- a/src/DotRecast.Core/Buffers/RcRentedArray.cs +++ b/src/DotRecast.Core/Buffers/RcRentedArray.cs @@ -34,14 +34,14 @@ namespace DotRecast.Core.Buffers [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); return _array[index]; } [MethodImpl(MethodImplOptions.AggressiveInlining)] set { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); _array[index] = value; } } diff --git a/src/DotRecast.Core/Collections/RcStackArray128.cs b/src/DotRecast.Core/Collections/RcStackArray128.cs index d3caa30..d80afad 100644 --- a/src/DotRecast.Core/Collections/RcStackArray128.cs +++ b/src/DotRecast.Core/Collections/RcStackArray128.cs @@ -144,7 +144,7 @@ namespace DotRecast.Core.Collections [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); return index switch { @@ -282,7 +282,7 @@ namespace DotRecast.Core.Collections set { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); switch (index) { diff --git a/src/DotRecast.Core/Collections/RcStackArray16.cs b/src/DotRecast.Core/Collections/RcStackArray16.cs index 461bff1..df3cb4f 100644 --- a/src/DotRecast.Core/Collections/RcStackArray16.cs +++ b/src/DotRecast.Core/Collections/RcStackArray16.cs @@ -32,7 +32,7 @@ namespace DotRecast.Core.Collections [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); return index switch { @@ -58,7 +58,7 @@ namespace DotRecast.Core.Collections set { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); switch (index) { diff --git a/src/DotRecast.Core/Collections/RcStackArray2.cs b/src/DotRecast.Core/Collections/RcStackArray2.cs index c2e8d40..30affc0 100644 --- a/src/DotRecast.Core/Collections/RcStackArray2.cs +++ b/src/DotRecast.Core/Collections/RcStackArray2.cs @@ -18,7 +18,7 @@ namespace DotRecast.Core.Collections [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); return index switch { @@ -30,7 +30,7 @@ namespace DotRecast.Core.Collections set { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); switch (index) { diff --git a/src/DotRecast.Core/Collections/RcStackArray256.cs b/src/DotRecast.Core/Collections/RcStackArray256.cs index 4bb1ee1..8dec9b9 100644 --- a/src/DotRecast.Core/Collections/RcStackArray256.cs +++ b/src/DotRecast.Core/Collections/RcStackArray256.cs @@ -272,7 +272,7 @@ namespace DotRecast.Core.Collections [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); return index switch { @@ -538,7 +538,7 @@ namespace DotRecast.Core.Collections set { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); switch (index) { diff --git a/src/DotRecast.Core/Collections/RcStackArray32.cs b/src/DotRecast.Core/Collections/RcStackArray32.cs index 8f1c834..acd5e06 100644 --- a/src/DotRecast.Core/Collections/RcStackArray32.cs +++ b/src/DotRecast.Core/Collections/RcStackArray32.cs @@ -48,7 +48,7 @@ namespace DotRecast.Core.Collections [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); return index switch { @@ -90,7 +90,7 @@ namespace DotRecast.Core.Collections set { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); switch (index) { diff --git a/src/DotRecast.Core/Collections/RcStackArray4.cs b/src/DotRecast.Core/Collections/RcStackArray4.cs index 55cbb1f..38d5133 100644 --- a/src/DotRecast.Core/Collections/RcStackArray4.cs +++ b/src/DotRecast.Core/Collections/RcStackArray4.cs @@ -20,7 +20,7 @@ namespace DotRecast.Core.Collections [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); return index switch { @@ -34,7 +34,7 @@ namespace DotRecast.Core.Collections set { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); switch (index) { diff --git a/src/DotRecast.Core/Collections/RcStackArray512.cs b/src/DotRecast.Core/Collections/RcStackArray512.cs index 91b4aa2..95b59ae 100644 --- a/src/DotRecast.Core/Collections/RcStackArray512.cs +++ b/src/DotRecast.Core/Collections/RcStackArray512.cs @@ -528,7 +528,7 @@ namespace DotRecast.Core.Collections [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); return index switch { @@ -1051,7 +1051,7 @@ namespace DotRecast.Core.Collections set { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); switch (index) { diff --git a/src/DotRecast.Core/Collections/RcStackArray64.cs b/src/DotRecast.Core/Collections/RcStackArray64.cs index 6d15947..5aa88a3 100644 --- a/src/DotRecast.Core/Collections/RcStackArray64.cs +++ b/src/DotRecast.Core/Collections/RcStackArray64.cs @@ -80,7 +80,7 @@ namespace DotRecast.Core.Collections [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); return index switch { @@ -154,7 +154,7 @@ namespace DotRecast.Core.Collections set { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); switch (index) { diff --git a/src/DotRecast.Core/Collections/RcStackArray8.cs b/src/DotRecast.Core/Collections/RcStackArray8.cs index 47a9408..75e1b15 100644 --- a/src/DotRecast.Core/Collections/RcStackArray8.cs +++ b/src/DotRecast.Core/Collections/RcStackArray8.cs @@ -24,7 +24,7 @@ namespace DotRecast.Core.Collections [MethodImpl(MethodImplOptions.AggressiveInlining)] get { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); return index switch { @@ -42,7 +42,7 @@ namespace DotRecast.Core.Collections set { - ThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); + RcThrowHelper.ThrowExceptionIfIndexOutOfRange(index, Length); switch (index) { diff --git a/src/DotRecast.Core/ThrowHelper.cs b/src/DotRecast.Core/RcThrowHelper.cs similarity index 97% rename from src/DotRecast.Core/ThrowHelper.cs rename to src/DotRecast.Core/RcThrowHelper.cs index 78047b3..4eb6526 100644 --- a/src/DotRecast.Core/ThrowHelper.cs +++ b/src/DotRecast.Core/RcThrowHelper.cs @@ -4,7 +4,7 @@ using DotRecast.Core.Collections; namespace DotRecast.Core { - public static class ThrowHelper + public static class RcThrowHelper { [MethodImpl(MethodImplOptions.AggressiveInlining)] public static void ThrowExceptionIfIndexOutOfRange(int index, int size)