コード例 #1
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);
    }
コード例 #2
0
ファイル: DataPacker.cs プロジェクト: zealass/GoWorldUnity3D
        static MapAttr convertFromMsgPackObjectDictionary(MsgPack.MessagePackObjectDictionary mpobj)
        {
            MapAttr t = new MapAttr();

            MsgPack.MessagePackObjectDictionary.Enumerator e = mpobj.GetEnumerator();
            while (e.MoveNext())
            {
                MsgPack.MessagePackObject key = e.Current.Key;
                MsgPack.MessagePackObject val = e.Current.Value;
                t.put(key.AsString(), convertFromMsgPackObject(val));
            }
            return(t);
        }
コード例 #3
0
 public string AsString()
 {
     return(_msgPackObject.AsString());
 }