[Solved] How to convert any type of Object into byte array in Windows phone 8?


DataContractSerializer serializer = new    DataContractSerializer(typeof(List<Dictionary<String, String>>));

byte[] byteArr;

using (var ms = new System.IO.MemoryStream())
{
 serializer.WriteObject(ms, stringlist);
 byteArr = ms.ToArray();
}
 return byteArr;

solved How to convert any type of Object into byte array in Windows phone 8?