Exemplo n.º 1
0
        public void setHashTable(string Key, HashtableSerailizable htable)
        {
            if (m_client == null)
            {
                return;
            }
            string xml = MyXmlSerializer.XmlSerializeToString(htable);

            m_client.Store(StoreMode.Set, Key, xml);
        }
Exemplo n.º 2
0
        // 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);
        }