forked from mirror/DotRecast
typo
This commit is contained in:
parent
2dc8593c78
commit
94ed3d646c
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
Loading…
Reference in New Issue