User Tools

Site Tools


map_suite_serialization_guide

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
map_suite_serialization_guide [2015/08/31 07:58]
admin
map_suite_serialization_guide [2019/10/21 07:07] (current)
tgwikiupdate [Map Suite Serialization Guide]
Line 1: Line 1:
 ====== Map Suite Serialization Guide ====== ====== Map Suite Serialization Guide ======
 +
 +{{section>​upgrade_map_suite_to_10.0}}
 +
 =====Serialization & Deserialization===== =====Serialization & Deserialization=====
 ====Using a File==== ====Using a File====
Line 127: Line 130:
 </​code>​ </​code>​
  
-The type "​MyControl"​ inherits from System.Window.Control.Control. ​ Now if we try to serialize an instance of MyControl, the serializer will throw an exception because the type "​Control"​ contains fields of types that are not serializable. ​ The NonSerializedAttribute we mentioned before does not help here, because we don't own the type "​Control",​ so we can't put attributes to its fields. ​ At this point, our only solution is to put [[NonSerializableBaseType]] on "​MyControl":​+The type "​MyControl"​ inherits from System.Window.Control.Control. ​ Now if we try to serialize an instance of MyControl, the serializer will throw an exception because the type "​Control"​ contains fields of types that are not serializable. ​ The NonSerializedAttribute we mentioned before does not help here, because we don't own the type "​Control",​ so we can't put attributes to its fields. ​ At this point, our only solution is to put [NonSerializableBaseType] on "​MyControl":​
  
 <code csharp> <code csharp>
Line 248: Line 251:
 ===LoadCore=== ===LoadCore===
 Recreates a GeoObjectModel from a stream. Recreates a GeoObjectModel from a stream.
- 
-[[Category:​Map Suite Services Edition]] [[Category:​Web GIS]] [[Category:​Desktop GIS]] [[Category:​GIS]] [[Category:​.NET]] 
- 
map_suite_serialization_guide.1441007919.txt.gz ยท Last modified: 2015/08/31 07:58 by admin