#Bug?
Bug?
The queue destroys itself during a resize because
public void Enqueue(System.String item) { if(Count == _container.Length) ReSize(Count * 2); _container[_topHook++] = item; }
this allows me to enqueue a null
string
but it gets lost here
for(var i = 0; i < _container.Length; i++) if(_container[i] != null) container[j++] = _container[i];
where the copy loop won't copy it. So if I had queued ["foo", null, "bar"]
a resize would result in ["foo", "bar"]
.
You either should prevent enquing null
or don't change the content.
#Bug?
The queue destroys itself during a resize because
public void Enqueue(System.String item) { if(Count == _container.Length) ReSize(Count * 2); _container[_topHook++] = item; }
this allows me to enqueue a null
string
but it gets lost here
for(var i = 0; i < _container.Length; i++) if(_container[i] != null) container[j++] = _container[i];
where the copy loop won't copy it. So if I had queued ["foo", null, "bar"]
a resize would result in ["foo", "bar"]
.
You either should prevent enquing null
or don't change the content.
Bug?
The queue destroys itself during a resize because
public void Enqueue(System.String item) { if(Count == _container.Length) ReSize(Count * 2); _container[_topHook++] = item; }
this allows me to enqueue a null
string
but it gets lost here
for(var i = 0; i < _container.Length; i++) if(_container[i] != null) container[j++] = _container[i];
where the copy loop won't copy it. So if I had queued ["foo", null, "bar"]
a resize would result in ["foo", "bar"]
.
You either should prevent enquing null
or don't change the content.
#Bug?
The queue destroys itself during a resize because
public void Enqueue(System.String item) { if(Count == _container.Length) ReSize(Count * 2); _container[_topHook++] = item; }
this allows me to enqueue a null
string
but it gets lost here
for(var i = 0; i < _container.Length; i++) if(_container[i] != null) container[j++] = _container[i];
where the copy loop won't copy it. So if I had queued ["foo["foo", null, "bar"]
a resize would result in ["foo", "bar"]
.
You either should prevent enquing null
or don't change the content.
#Bug?
The queue destroys itself during a resize because
public void Enqueue(System.String item) { if(Count == _container.Length) ReSize(Count * 2); _container[_topHook++] = item; }
this allows me to enqueue a null
string
but it gets lost here
for(var i = 0; i < _container.Length; i++) if(_container[i] != null) container[j++] = _container[i];
where the copy loop won't copy it. So if I had queued ["foo, null, "bar"]
a resize would result in ["foo", "bar"]
.
You either should prevent enquing null
or don't change the content.
#Bug?
The queue destroys itself during a resize because
public void Enqueue(System.String item) { if(Count == _container.Length) ReSize(Count * 2); _container[_topHook++] = item; }
this allows me to enqueue a null
string
but it gets lost here
for(var i = 0; i < _container.Length; i++) if(_container[i] != null) container[j++] = _container[i];
where the copy loop won't copy it. So if I had queued ["foo", null, "bar"]
a resize would result in ["foo", "bar"]
.
You either should prevent enquing null
or don't change the content.
#Bug?
The queue destroys itself during a resize because
public void Enqueue(System.String item) { if(Count == _container.Length) ReSize(Count * 2); _container[_topHook++] = item; }
this allows me to enqueue a null
string
but it gets lost here
for(var i = 0; i < _container.Length; i++) if(_container[i] != null) container[j++] = _container[i];
where the copy loop won't copy it. So if I had queued ["foo, null, "bar"]
a resize would result in ["foo", "bar"]
.
You either should prevent enquing null
or don't change the content.