Rodniko
Rodniko

Reputation: 5124

Can i serialize any object in the world (in C#)?

are there objects or classes i can't serialize ? i mean , with Binary serialize that serialize all fields and properties...

Upvotes: 0

Views: 334

Answers (2)

Adriaan Stander
Adriaan Stander

Reputation: 166356

The generic Dictionay is not serializable. You need to implement your own serializer.

Upvotes: 1

Rohan West
Rohan West

Reputation: 9298

Not all classes are marked with the SerializableAttribute

[Serializable]
public class Foo
{
  ...
}

Upvotes: 2

Related Questions