// ******************************************************************
 private static void UnknownNode(object sender, XmlNodeEventArgs xmlNodeEventArgs)
 {
     // Correction according to: https://stackoverflow.com/questions/42342875/xmlserializer-warns-about-unknown-nodes-attributes-when-deserializing-derived-ty/42407193#42407193
     if (xmlNodeEventArgs.Name == "xsi:type")
     {
     }
     else
     {
         throw new XmlException("UnknownNode" + xmlNodeEventArgs.ToString());
     }
 }
Ejemplo n.º 2
0
 void ser_UnknownNode(object sender, XmlNodeEventArgs e)
 {
     throw new Exception(e.ToString());
 }
Ejemplo n.º 3
0
 private static void UnknownNode(object sender, XmlNodeEventArgs e)
 {
     Debug.Log("unknown node " + sender.ToString() + " " + e.ToString());
 }