示例#1
0
        public void Deserialization(SceneObjectPart obj, XmlTextReader reader)
        {
            string components = reader.ReadElementContentAsString("Components", String.Empty);

            if (components != "")
            {
                try
                {
                    DeserializeComponents(obj, components);
                    obj.FinishedSerializingGenericProperties();
                }
                catch (Exception ex)
                {
                    MainConsole.Instance.Warn("[COMPONENTMANAGER]: Error on deserializing Components! " + ex);
                }
            }
        }
 public void Deserialization(SceneObjectPart obj, XmlTextReader reader)
 {
     string components = reader.ReadElementContentAsString("Components", String.Empty);
     if (components != "")
     {
         try
         {
             DeserializeComponents(obj, components);
             obj.FinishedSerializingGenericProperties();
         }
         catch (Exception ex)
         {
             MainConsole.Instance.Warn("[COMPONENTMANAGER]: Error on deserializing Components! " + ex);
         }
     }
 }