void CopyFrom(GridPlaneCollection from)
        {
            this.Clear();

            foreach (GridPlane plane in from)
            {
                this.Add((GridPlane)plane.Clone());
            }
        }
            public virtual void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
            {
                GridPlaneCollection s = (GridPlaneCollection)obj;

                info.CreateArray("GridPlanes", s.Count);
                foreach (GridPlane plane in s)
                {
                    info.AddValue("e", plane);
                }
                info.CommitArray();
            }
Exemple #3
0
        private void CopyFrom(GridPlaneCollection from)
        {
            if (object.ReferenceEquals(this, from))
            {
                return;
            }

            Clear();

            foreach (GridPlane plane in from)
            {
                Add(plane.Clone());
            }
        }
            protected virtual GridPlaneCollection SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                GridPlaneCollection s = (o == null ? new GridPlaneCollection() : (GridPlaneCollection)o);

                int count = info.OpenArray("GridPlanes");

                for (int i = 0; i < count; i++)
                {
                    GridPlane plane = (GridPlane)info.GetValue("e", s);
                    s.Add(plane);
                }
                info.CloseArray(count);

                return(s);
            }
            public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                GridPlaneCollection s = SDeserialize(o, info, parent);

                return(s);
            }
 public GridPlaneCollection(GridPlaneCollection from)
 {
     CopyFrom(from);
 }