public virtual void loadFrom(BinaryReader reader, PersistContext ctx) { ctx.loadReference(this); type = (AttachTo)reader.ReadInt32(); attData = reader.ReadInt32(); // in format revision 28 'percents' changed from Rectangle to RectangleF if (ctx.FileVersion < 28) { Rectangle r = ctx.loadRect(); percents = RectangleF.FromLTRB(r.Left, r.Top, r.Right, r.Bottom); } else { percents = ctx.loadRectF(); } }