From d7f9b6e348f542940f06fb53f299a414777d39fe Mon Sep 17 00:00:00 2001 From: ikpil Date: Sat, 2 Sep 2023 15:11:19 +0900 Subject: [PATCH] support empty RcImmutableArray --- src/DotRecast.Core/RcImmutableArray.Enumerable.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DotRecast.Core/RcImmutableArray.Enumerable.cs b/src/DotRecast.Core/RcImmutableArray.Enumerable.cs index e3b4769..f08b4e6 100644 --- a/src/DotRecast.Core/RcImmutableArray.Enumerable.cs +++ b/src/DotRecast.Core/RcImmutableArray.Enumerable.cs @@ -18,7 +18,7 @@ namespace DotRecast.Core private sealed class EnumeratorObject : IEnumerator { - private static readonly IEnumerator EmptyEnumerator = Create(Empty._array!); + private static readonly IEnumerator EmptyEnumerator = new EnumeratorObject(Empty._array!); private readonly T[] _array; private int _index;