Example #1
0
            public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
            {
                AssemblyAndTypeSurrogate s = (AssemblyAndTypeSurrogate)obj;

                info.AddValue("AssemblyName", s._assemblyName);
                info.AddValue("TypeName", s._typeName);
            }
Example #2
0
            public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                AssemblyAndTypeSurrogate s = o == null ? new AssemblyAndTypeSurrogate() : (AssemblyAndTypeSurrogate)o;

                s._assemblyName = info.GetString("AssemblyName");
                s._typeName     = info.GetString("TypeName");

                return(s);
            }