jtmueller / Collections.Pooled

Fast, low-allocation ports of List, Dictionary, HashSet, Stack, and Queue using ArrayPool and Span.
MIT License
547 stars 48 forks source link

PooledDictionary.Remove with Count 0 = Exception #50

Closed rwasef1830 closed 1 year ago

rwasef1830 commented 1 year ago

Describe the bug PooledDictionary.Remove with Count 0 = Exception

To Reproduce

var dict = new PooledDictionary<string, string>();
dict.Remove("Something");

Expected behavior return without doing anything.

rwasef1830 commented 1 year ago

It seemed this issue disappeared, I will re-evaluate and reopen when I repro.