Closed lindexi closed 2 years ago
public CloneCollection(T item) { this.array = ArrayPool<T>.Shared.Rent(1); // And I do not think rent the array which the lenght is one form pool is a good way. this.length = 1; // Miss: this.array[0] = item; }
Did you forget to assign a value to the variable?
Thank you,
Oh, that's right! I'll fix soon. Thanks!
Thank you
Did you forget to assign a value to the variable?
Thank you,