internal Enumerator(MessagePackObjectDictionary dictionary)
 {
     this = new MessagePackObjectDictionary.Enumerator();
     Contract.Assert(dictionary != null);
     this             = new MessagePackObjectDictionary.Enumerator();
     this._underlying = dictionary;
     this.ResetCore();
 }
                internal Enumerator(MessagePackObjectDictionary dictionary)
                {
#if !UNITY
                    Contract.Assert(dictionary != null, "dictionary != null");
#endif // !UNITY

                    this._underlying = dictionary.GetEnumerator();
                }
Exemplo n.º 3
0
    Hashtable convertFromMsgPackObjectDictionary(MsgPack.MessagePackObjectDictionary mpobj)
    {
        Hashtable ht = new Hashtable();

        MsgPack.MessagePackObjectDictionary.Enumerator e = mpobj.GetEnumerator();
        while (e.MoveNext())
        {
            MsgPack.MessagePackObject key = e.Current.Key;
            MsgPack.MessagePackObject val = e.Current.Value;
            ht.Add(key.AsString(), convertFromMsgPackObject(val));
        }
        return(ht);
    }
Exemplo n.º 4
0
                internal Enumerator(MessagePackObjectDictionary dictionary)
                {
                    Contract.Assert(dictionary != null, "dictionary != null");

                    this._underlying = dictionary.GetEnumerator();
                }
Exemplo n.º 5
0
 internal Enumerator(MessagePackObjectDictionary dictionary)
 {
     this._underlying = dictionary.GetEnumerator();
 }