I was using the xml serializer but when I switched to binary serialization, it throws an exception:
-- Runtime error: dotNet runtime exception: Type 'MyTypes.MyObject' in Assembly 'MyTypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable.
Why is it different than an xml serializer in the way it asks this?
Just marking the object as serializable is enough to solve this? I don't want to specify how the serialization should occur.