public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { string name = info.GetString("Name"); int count = info.OpenArray("Elements"); var list = new List <IDashPattern>(count); for (int i = 0; i < count; ++i) { list.Add((IDashPattern)info.GetValue("e", null)); } info.CloseArray(count); var result = new DashPatternList(name, list); return(result); }
/// <summary> /// Gets a key that is used during serialization to decide whether or not the set was already serialized. /// Use the returned key to retrieve a string from the properties of the serialization info. If the returned property string /// is null, then the set needs to be serialized; otherwise, it was already serialized before. /// </summary> /// <param name="set">The set for which the property key should be evaluated.</param> /// <returns>The property key to be used to retrieve a property from the serialization info.</returns> public static string GetSerializationRegistrationKey(DashPatternList set) { return(_serializationRegistrationKey + set.Name); }