Exemplo n.º 1
0
            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 <IScatterSymbol>(count);

                for (int i = 0; i < count; ++i)
                {
                    list.Add((IScatterSymbol)info.GetValue("e", null));
                }
                info.CloseArray(count);

                var result = new ScatterSymbolList(name, list);

                return(result);
            }
Exemplo n.º 2
0
 /// <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(ScatterSymbolList set)
 {
     return(_serializationRegistrationKey + set.Name);
 }