This repository has been archived by the owner on Jun 22, 2023. It is now read-only.
Reconsider use of SerializableAttribute #69
Labels
breaking change
Doing this would break either source or binary compatibility with existing versions.
Milestone
[Serializable]
on its own is easy, but it has problems: versioning, lack of control, and fields are opt-out.If we're going to keep supporting serialization / deserialization for instances of our types, then I recommend that we at least implement
ISerializable
(with(SerializationInfo info, StreamingContext context)
constructor) wherever we do.Though, if you ask me, I think
[Serializable]
is probably not that helpful in our context to begin with. There are plenty of platform-independent binary / text formats that support copying geometry instances from one place to another. .NET-specific serialization / deserialization on top of that doesn't seem to justify itself.So one thing we could do instead of
ISerializable
would be to just remove the[Serializable]
tags for v2, see if that actually breaks anybody's workflow, and then consider how best to resolve that, in the context of all the serialization options available now that we're not limited by the APIs supported on v1 platforms.The text was updated successfully, but these errors were encountered: