AnsweredAssumed Answered

.NET 4.0 XmlSerializer and Runtime Objects

Question asked by epaitz-esristaff Employee on Sep 25, 2012
Latest reply on Nov 29, 2012 by akajanus-esristaff
Is it possible to Serialize Objects in the ArcGIS Runtime SDK for WPF? I thought this should have worked but it does not.

 SimpleMarkerSymbol simpleMarkerSymbol = new SimpleMarkerSymbol() {     Color = new SolidColorBrush(Colors.Red),     Size = 10,     Style = SimpleMarkerSymbol.SimpleMarkerStyle.Circle };  using (TextWriter textWriter = new StreamWriter(@"c:\temp\test.xml")) {     XmlSerializer xmlSerializer = new XmlSerializer(simpleMarkerSymbol.GetType());     xmlSerializer.Serialize(textWriter, simpleMarkerSymbol); }