public static byte[] SerializeCache() { MemoryStream retVal = new MemoryStream(); BinaryFormatter b = new BinaryFormatter(); b.Serialize(retVal,m_pCache); return retVal.ToArray(); }