Closed yossiepon closed 1 year ago
Hi, I remember falling int the same issue and if i recall correctly the reason for the exception was mapping the input sequence onto a Span. The fix is to materialize the sequence first, for example with .ToList() before calling AddRange():
list.AddRange(zippedSeq.ToList());
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days.
I am getting an exception with the code below.
I think there's something wrong with the CloneCollection construction process when the enumerator doesn't support NonEnumeratedCount.
CloneCollection.TryEnsureCapacity seems to be returning an empty array.