public void ClearSystemPackageCaches() { systemPackageCaches.ForEach(delegate(PackageObject o) { PackageObject.Release(ref o); }); systemPackageCaches.Clear(); }
public void ClearPackageCaches() { packageCaches.ForEach(delegate(PackageObject o) { PackageObject.Release(ref o); }); DeletePackageObjects(); packageCaches.Clear(); }
public static StringKeyTable <T> CreateStringKeyTable <T>(string text, CallBackStringKeyReadCSV <T> cb, string name_table) where T : new() { StringKeyTable <T> stringKeyTable = new StringKeyTable <T>(); CSVReader cSVReader = new CSVReader(text, name_table, false); while (cSVReader.NextLine()) { string value = string.Empty; if ((bool)cSVReader.Pop(ref value) && value.Length > 0) { T val = new T(); if (!cb(cSVReader, val, ref value)) { stringKeyTable.Clear(); return(null); } stringKeyTable.Add(value, val); } } return(stringKeyTable); }
public void ClearAll() { attackHitList.Clear(); }