Skip to content

Commit bb96de0

Browse files
committed
[Concat] fix Reset for ConcatEnumerator and RefConcatEnumerator.
1 parent 42d2a4a commit bb96de0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/StructLinq/Concat/ConcatEnumerator.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public void Reset()
3838
{
3939
enumerator1.Reset();
4040
enumerator2.Reset();
41+
first = true;
4142
}
4243

4344
public T Current

src/StructLinq/Concat/RefConcatEnumerator.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public void Reset()
3838
{
3939
enumerator1.Reset();
4040
enumerator2.Reset();
41+
first = true;
4142
}
4243

4344
public ref T Current

0 commit comments

Comments
 (0)