public void setHashTable(string Key, HashtableSerailizable htable) { if (m_client == null) { return; } string xml = MyXmlSerializer.XmlSerializeToString(htable); m_client.Store(StoreMode.Set, Key, xml); }
// Serialize whole hash tables public HashtableSerailizable getHashTable(string Key) { HashtableSerailizable htable = null; if (m_client != null) { //string xml = m_client.Get<string>(Key); object obj = m_client.Get(Key); string xml = ""; if (obj != null) { xml = obj.ToString(); } htable = (HashtableSerailizable)MyXmlSerializer.XmlDeserializeFromString(xml, typeof(HashtableSerailizable)); } return(htable); }