/// <summary> /// Deserialization constructor /// </summary> /// <param name="info">The info.</param> /// <param name="context">The context.</param> protected ConnectorBase(SerializationInfo info, StreamingContext context) : base(info, context) { if (Tracing.BinaryDeserializationSwitch.Enabled) { Trace.WriteLine("Deserializing the fields of 'ConnectorBase'."); } this.mPoint = (Point)info.GetValue("Point", typeof(Point)); attachedConnectors = new CollectionBase <IConnector>(); #region Preparation of the anchoring process Guid tuid = new Guid(info.GetString("AttachedTo")); Anchors.Add(this.Uid, new Anchor(tuid, this)); #endregion }
/// <summary> /// Deserialization constructor /// </summary> /// <param name="info">The info.</param> /// <param name="context">The context.</param> protected ConnectorBase(SerializationInfo info, StreamingContext context) : base(info, context) { if (Tracing.BinaryDeserializationSwitch.Enabled) { Trace.WriteLine("Deserializing the fields of 'ConnectorBase'."); } double version = info.GetDouble("ConnectorBaseVersion"); this.mShowName = info.GetBoolean("ShowName"); this.mNameLocation = (ConnectorNameLocation)info.GetValue( "NameLocation", typeof(ConnectorNameLocation)); this.mPoint = (Point)info.GetValue("Point", typeof(Point)); mAttachedConnectors = new CollectionBase <IConnector>(); #region Preparation of the anchoring process Guid tuid = new Guid(info.GetString("AttachedTo")); Anchors.Add(this.Uid, new Anchor(tuid, this)); #endregion }