Serializzation not work
Posted: 07 Jan 2010, 11:49
In help file the class CADEntity is marked as serializzable.
When i try to serialize this object i get the following error:
- $exception {"There was an error reflecting type 'CADImport.FlatPoly'."} System.Exception {System.InvalidOperationException}
- InnerException {"Cannot serialize member 'CADImport.CADEntity.DrawEvent' of type 'CADImport.EventHandler', see inner exception for more details."} System.Exception {System.InvalidOperationException}
Message "CADImport.EventHandler cannot be serialized because it does not have a parameterless constructor." string
It is a bug?
I want to serialize CADImage object and all the content. How can i do that?
When i try to serialize this object i get the following error:
- $exception {"There was an error reflecting type 'CADImport.FlatPoly'."} System.Exception {System.InvalidOperationException}
- InnerException {"Cannot serialize member 'CADImport.CADEntity.DrawEvent' of type 'CADImport.EventHandler', see inner exception for more details."} System.Exception {System.InvalidOperationException}
Message "CADImport.EventHandler cannot be serialized because it does not have a parameterless constructor." string
It is a bug?
I want to serialize CADImage object and all the content. How can i do that?