Convert/Serialize字典<string,string>转字节数组byte[] in windowsphone8
Convert/Serialize Dictionary<string,string> to byte array byte[] in windows phone 8
我正在为 windows phone 开发应用程序 8. 我有词典格式的词典。我想将这本字典转换为字节数组。根据此 link dictionary can be serialized into byte array using the BinaryFormtter class. However according to this link 我无法在 windows phone 中使用 BinaryFormatter 8. 是否有任何可用的变通方法以便我序列化我的字典?
尝试
byte[] content = UTF8.GetBytes(UrlEncode(body));
我正在为 windows phone 开发应用程序 8. 我有词典格式的词典。我想将这本字典转换为字节数组。根据此 link dictionary can be serialized into byte array using the BinaryFormtter class. However according to this link 我无法在 windows phone 中使用 BinaryFormatter 8. 是否有任何可用的变通方法以便我序列化我的字典?
尝试
byte[] content = UTF8.GetBytes(UrlEncode(body));