none
BinaryFormatter is missing RRS feed

  • Question

  • Hello everybody,

    I'm looking for a way to deserialize a binary object in a Windows Store application.

    I've just seen that the BinaryFormatter is not anymore in the SDK and so I need your help.

    Anyone has an idea ?

    Best regards,

    Loic.

    mercredi 26 septembre 2012 12:39

Réponses

  • Hello,

    There is no more BinaryFormatter with WinRT, but if you want to rely on Serialization you can explore Xml or better Json serialization (DataContractSerializer et JsonDataContractSerializer)

    If you want to keep a binary format you'll have to do it on your own using DataWriter/DataReader.

    Hope this helps,

    Cyprien


    Cyprien Autexier

    • Marqué comme réponse Loic Chotin mercredi 26 septembre 2012 15:24
    mercredi 26 septembre 2012 12:45

Toutes les réponses

  • Hello,

    There is no more BinaryFormatter with WinRT, but if you want to rely on Serialization you can explore Xml or better Json serialization (DataContractSerializer et JsonDataContractSerializer)

    If you want to keep a binary format you'll have to do it on your own using DataWriter/DataReader.

    Hope this helps,

    Cyprien


    Cyprien Autexier

    • Marqué comme réponse Loic Chotin mercredi 26 septembre 2012 15:24
    mercredi 26 septembre 2012 12:45
  • Thanks,

    I will try to use DataWriter/DataReader objects ;)

    Loic.

    mercredi 26 septembre 2012 15:25