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++) { var 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); }