forked from mirror/DotRecast
support empty RcImmutableArray
This commit is contained in:
parent
3915a4418c
commit
d7f9b6e348
|
@ -18,7 +18,7 @@ namespace DotRecast.Core
|
||||||
|
|
||||||
private sealed class EnumeratorObject : IEnumerator<T>
|
private sealed class EnumeratorObject : IEnumerator<T>
|
||||||
{
|
{
|
||||||
private static readonly IEnumerator<T> EmptyEnumerator = Create(Empty._array!);
|
private static readonly IEnumerator<T> EmptyEnumerator = new EnumeratorObject(Empty._array!);
|
||||||
private readonly T[] _array;
|
private readonly T[] _array;
|
||||||
private int _index;
|
private int _index;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue