dillenmeister / Trello.NET

A .NET client library for Trello
192 stars 85 forks source link

Serialize Trello.net objects #54

Open eriklidman opened 10 years ago

eriklidman commented 10 years ago

Hi, Short questions; I’m trying to inherit and extend the Trello.net objects (card, list etc), and then I would like to make a binary serialization to disk. But I see that the objects are not marked as serializable. Is there any workaround to make this possible? /Erik (also from Sweden)

dillenmeister commented 10 years ago

Hej!

Most serializers don't care about the Serializable attribute. If you can use another serializer than BinaryFormatter it will work.

Why do you need binary serialization?

16 sep 2014 kl. 20:33 skrev eriklidman notifications@github.com:

Hi, Short questions; I’m trying to inherit and extend the Trello.net objects (card, list etc), and then I would like to make a binary serialization to disk. But I see that the objects are not marked as serializable. Is there any workaround to make this possible? /Erik (also from Sweden)

— Reply to this email directly or view it on GitHub.

eriklidman commented 10 years ago

Ok, I will try that. I want to save a List to disk. And later open it up again. Like a local cache on disk (winform app).

eriklidman commented 10 years ago

Hej, No, I cant get it to work. I have tested several serializers and I cannot serialize a List (Card) to disk. Do you have any suggestion which one to use?