public static PluginInfo[] GetPluginsCache(string cacheStr) { if (cacheStr.Length > 0) { return(SerializeMan.ByteArrayToObject(Convert.FromBase64String(cacheStr)) as PluginInfo[]); } else { return new PluginInfo[] { } }; }
public static string GenerateCacheStr() { return(Convert.ToBase64String(SerializeMan.ObjectToByteArray(GetPlugins()))); }