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