Code Red > .NET

[Serializable] not!

(1/2) > >>

It's Alive!:

Does anyone know why Autodesk chose not to mark some of the basic types
such as Point3d, Point2d, ObjectId, etc [Serializable]   ?

MP:
Insomniac response so it's probably way out to lunch but - perhaps because they are all primitive data types the overhead / bloat isn't justifiable, in particular because of the cascaded effect upon the object model greater.

MP:
http://msdn2.microsoft.com/en-us/library/ms979193.aspx

Kerry:
Hi Daniel .. I'm playing guessing games as well, but Michael's conjecture seems to make sense.

... I'd also guess that the serialization would need to be purpose specific'

..  .. from memory very few of the library classes are Serializable.

There is a .net sample in the ObjectARX SDK called TestFiler.cs demonstrating Object dumping ... but there probably won't be much new stuff there for you :-)

sorry I can't be of help.
   

It's Alive!:
Thanks for the replies. I’ll just wrap the objects I need serialized in new serializable objects and/or breakout the primitives I need stored.

Navigation

[0] Message Index

[#] Next page

Go to full version