public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info) { Altaxo.Data.TextColumn s = (Altaxo.Data.TextColumn)obj; // serialize the base class info.AddBaseValueEmbedded(s, typeof(Altaxo.Data.DataColumn)); if (null == info.GetProperty("Altaxo.Data.DataColumn.SaveAsTemplate")) { info.AddArray("Data", s.m_Array, s.m_Count); } else { info.AddArray("Data", s.m_Array, 0); } }
protected static void SerializeSetV0(IScatterSymbol obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info) { var parent = ScatterSymbolListManager.Instance.GetParentList(obj); if (null != parent) { if (null == info.GetProperty(ScatterSymbolList.GetSerializationRegistrationKey(parent))) { info.AddValue("Set", parent); } else { info.AddValue("SetName", parent.Name); } } }
public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info) { var s = (NamedColor)obj; info.AddValue("Color", s.Color.ToInvariantString()); info.AddValue("Name", s._name); // use _name instead of Name, to make sure _name is null if name was autogenerated if (null != s._parent) { var colorSetName = s._parent.Name; if (!object.ReferenceEquals(NamedColors.Instance, s._parent) && null == info.GetProperty(ColorSet.GetSerializationRegistrationKey(s._parent))) { info.AddValue("Set", s._parent); } else { info.AddValue("SetName", s._parent.Name); } } }