Esempio n. 1
0
        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();
            }
        }
Esempio n. 2
0
 public void Clear()
 {
     tLookup.Clear();
     uLookup.Clear();
 }