using System; using System.Collections.Generic; namespace Gum.Pooling.Collections { public sealed class PooledDictionary : Dictionary, IDisposable { internal PooledDictionary() { } public static PooledDictionary Get() { return DictionaryPool.Shared.Get(); } public void Dispose() { Clear(); DictionaryPool.Shared.Put(this); } } }