コード例 #1
0
        void CopyFrom(GridPlaneCollection from)
        {
            this.Clear();

            foreach (GridPlane plane in from)
            {
                this.Add((GridPlane)plane.Clone());
            }
        }
コード例 #2
0
            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();
            }
コード例 #3
0
ファイル: GridPlaneCollection.cs プロジェクト: olesar/Altaxo
        private void CopyFrom(GridPlaneCollection from)
        {
            if (object.ReferenceEquals(this, from))
            {
                return;
            }

            Clear();

            foreach (GridPlane plane in from)
            {
                Add(plane.Clone());
            }
        }
コード例 #4
0
            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);
            }
コード例 #5
0
            public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                GridPlaneCollection s = SDeserialize(o, info, parent);

                return(s);
            }
コード例 #6
0
 public GridPlaneCollection(GridPlaneCollection from)
 {
     CopyFrom(from);
 }