public static void DisposeAll <T>(this LookupList <T> it) where T : IDisposable { if (it != null) { foreach (var item in it.AllObjects) { item.Dispose(); } it.Clear(); } }
public void Clear() { tLookup.Clear(); uLookup.Clear(); }
public static void DisposeAll <T>(this LookupList <T> it) where T : IDisposable { if (it != null) { foreach (var item in it.AllObjects) { item.Dispose(); } it.Clear(); } }
public void Clear() { tLookup.Clear(); uLookup.Clear(); }