As part of the process of upgrading from TG 10 to TG 14 I am testing serialization. The first attempt at serializing a class that inherits from ShapefileFeatureLayer is not working properly. For a number of reasons I am using the latest Beta release of TG. I noticed when de-serializing that some of the properties did not appear to save, for example the ‘Name’ property. I took a look at the XML file that was produced and I can see the problem. Here is a sample:
<?xml version="1.0" encoding="utf-8"?>
<CustomShapefileFeatureLayer type="ArcGisRestDemo.CustomShapefileFeatureLayer, ArcGisRestDemo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" hashCode="d3fbf29c-6a2d-485e-90f3-a8eb3fe8a083">
<redTranslation>0</redTranslation>
<greenTranslation>0</greenTranslation>
<blueTranslation>0</blueTranslation>
<transparency>255</transparency>
<lh0ProEqualSign>AreasOfConcern</lh0ProEqualSign>
<lx0ProEqualSign>False</lx0ProEqualSign>
<mB0ProEqualSign>True</mB0ProEqualSign>
<mR0ProEqualSign isProperty="true">
<_ticks>0</_ticks>
</mR0ProEqualSign>
<mx0ProEqualSign>DrawException</mx0ProEqualSign>
<nR0ProEqualSign isProperty="true" />
<nh0ProEqualSign>False</nh0ProEqualSign>
<nx0ProEqualSign>False</nx0ProEqualSign>
<oB0ProEqualSign>Unsafe</oB0ProEqualSign>
<oR0ProEqualSign isProperty="true" />
<oh0ProEqualSign>None</oh0ProEqualSign>
Notice that a number of properties are not saved properly in the XML. For example, The ‘Name’ property is
<lh0ProEqualSign>AreasOfConcern</lh0ProEqualSign>
instead of
<name>AreasOfConcern</name>
Looks to me like something is not working properly. Can you help with this?
Thanks!
Steve